mirror of https://github.com/acidanthera/audk.git
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:
parent
8063b47b1c
commit
2dda77a650
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue