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:
erictian
2011-11-16 10:24:47 +00:00
parent 96aace827e
commit f01219e875
3 changed files with 29 additions and 8 deletions

View File

@@ -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:
//