From 41e8ff2781f3ca14f73ef5f39e781ccba8cb373d Mon Sep 17 00:00:00 2001 From: yshang1 Date: Mon, 8 Oct 2007 06:14:13 +0000 Subject: Fixed unexpected timeout in Usb MassStorage Driver. Fixed unexpected timeout in Uhci/Ehci driver. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4038 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c') diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c b/MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c index 4c2dc86f06..349b5c233a 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c +++ b/MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c @@ -342,7 +342,7 @@ EhcUnlinkQhFromAsync ( // // Set and wait the door bell to synchronize with the hardware // - Status = EhcSetAndWaitDoorBell (Ehc, EHC_GENERIC_TIME); + Status = EhcSetAndWaitDoorBell (Ehc, EHC_GENERIC_TIMEOUT); if (EFI_ERROR (Status)) { EHC_ERROR (("EhcUnlinkQhFromAsync: Failed to synchronize with doorbell\n")); @@ -659,7 +659,7 @@ EhcExecTransfer ( BOOLEAN Finished; Status = EFI_SUCCESS; - Loop = (TimeOut * EHC_STALL_1_MILLISECOND / EHC_SYNC_POLL_TIME) + 1; + Loop = (TimeOut * EHC_1_MILLISECOND / EHC_SYNC_POLL_INTERVAL) + 1; Finished = FALSE; for (Index = 0; Index < Loop; Index++) { @@ -669,7 +669,7 @@ EhcExecTransfer ( break; } - gBS->Stall (EHC_SYNC_POLL_TIME); + gBS->Stall (EHC_SYNC_POLL_INTERVAL); } if (!Finished) { -- cgit v1.2.3