]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/Xhci: make all timeout values be consistent with comments.
authorFeng Tian <feng.tian@intel.com>
Wed, 19 Aug 2015 03:41:38 +0000 (03:41 +0000)
committererictian <erictian@Edk2>
Wed, 19 Aug 2015 03:41:38 +0000 (03:41 +0000)
commit26cd2d6d2d1154cfda891085ad34905c69ff62ce
treed39459aa7f1d043d2636113c5c16ba24170dc552
parent1d7258fa5312085e61de85fd3c6f60b761ad8653
MdeModulePkg/Xhci: make all timeout values be consistent with comments.

In the original code, there exists some mismatches between the real
waiting time and the corresponding timeout comments. For example, the
XHC_GENERIC_TIMEOUT comment says it's 10ms timeout value, but the real
code in fact waits 10s.

So the code is refined to be consistent in code logic and comments.

Note XHC_POLL_DELAY macro also be removed and the polling interval in
XhcWaitOpRegBit() is changed from 1ms to 1us to keep same code style
with other code. It has no real functionality impact.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18235 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Bus/Pci/XhciDxe/Xhci.h
MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c
MdeModulePkg/Bus/Pci/XhciPei/XhcPeim.c
MdeModulePkg/Bus/Pci/XhciPei/XhcPeim.h
MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c