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
This commit is contained in:
Feng Tian
2015-08-19 03:41:38 +00:00
committed by erictian
parent 1d7258fa53
commit 26cd2d6d2d
6 changed files with 29 additions and 35 deletions

View File

@@ -1215,7 +1215,7 @@ XhcExecTransfer (
{
EFI_STATUS Status;
UINTN Index;
UINTN Loop;
UINT64 Loop;
UINT8 SlotId;
UINT8 Dci;
BOOLEAN Finished;