Update UHCI and ECHI drivers to both Stop and Reset the host controller at ExitBootServices().

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10464 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
mdkinney 2010-05-07 22:46:14 +00:00
parent 8063b47b1c
commit 2dda77a650
2 changed files with 7 additions and 5 deletions

View File

@ -1476,11 +1476,9 @@ EhcExitBootService (
Ehc = (USB2_HC_DEV *) Context; Ehc = (USB2_HC_DEV *) Context;
// //
// Stop the Host Controller // Reset the Host Controller
// //
EhcHaltHC (Ehc, EHC_GENERIC_TIMEOUT); EhcResetHC (Ehc, EHC_RESET_TIMEOUT);
return;
} }

View File

@ -1588,7 +1588,11 @@ UhcExitBootService (
// //
UhciStopHc (Uhc, UHC_GENERIC_TIMEOUT); UhciStopHc (Uhc, UHC_GENERIC_TIMEOUT);
return; //
// Reset the Host Controller
//
UhciSetRegBit (Uhc->PciIo, USBCMD_OFFSET, USBCMD_HCRESET);
gBS->Stall (UHC_ROOT_PORT_RECOVERY_STALL);
} }
/** /**