MdeModulePkg: Enable port power if port power control feature is supported by EHCI
signed-off-by: erictian reviewed-by: li-elvin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12725 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -469,9 +469,12 @@ EhcSetRootHubPortFeature (
|
||||
|
||||
case EfiUsbPortPower:
|
||||
//
|
||||
// Not supported, ignore the operation
|
||||
// Set port power bit when PPC is 1
|
||||
//
|
||||
Status = EFI_SUCCESS;
|
||||
if ((Ehc->HcCapParams & HCSP_PPC) == HCSP_PPC) {
|
||||
State |= PORTSC_POWER;
|
||||
EhcWriteOpReg (Ehc, Offset, State);
|
||||
}
|
||||
break;
|
||||
|
||||
case EfiUsbPortOwner:
|
||||
@@ -598,6 +601,14 @@ EhcClearRootHubPortFeature (
|
||||
break;
|
||||
|
||||
case EfiUsbPortPower:
|
||||
//
|
||||
// Clear port power bit when PPC is 1
|
||||
//
|
||||
if ((Ehc->HcCapParams & HCSP_PPC) == HCSP_PPC) {
|
||||
State &= ~PORTSC_POWER;
|
||||
EhcWriteOpReg (Ehc, Offset, State);
|
||||
}
|
||||
break;
|
||||
case EfiUsbPortSuspendChange:
|
||||
case EfiUsbPortResetChange:
|
||||
//
|
||||
|
Reference in New Issue
Block a user