Fix PciHostBridge driver to return success for EfiPciHostBridgeEndEnumeration to fix OVMF boot no display issue.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14498 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Ruiyu Ni 2013-07-22 07:35:51 +00:00 committed by niruiyu
parent 775180651d
commit cfdb673785
1 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,7 @@
/** @file /** @file
Provides the basic interfaces to abstract a PCI Host Bridge Resource Allocation Provides the basic interfaces to abstract a PCI Host Bridge Resource Allocation
Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR> Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are This program and the accompanying materials are
licensed and made available under the terms and conditions of the BSD License licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -281,12 +281,14 @@ NotifyPhase(
} }
break; break;
case EfiPciHostBridgeEndEnumeration:
break;
case EfiPciHostBridgeBeginBusAllocation: case EfiPciHostBridgeBeginBusAllocation:
// //
// No specific action is required here, can perform any chipset specific programing // No specific action is required here, can perform any chipset specific programing
// //
HostBridgeInstance->CanRestarted = FALSE; HostBridgeInstance->CanRestarted = FALSE;
return EFI_SUCCESS;
break; break;
case EfiPciHostBridgeEndBusAllocation: case EfiPciHostBridgeEndBusAllocation:
@ -294,7 +296,6 @@ NotifyPhase(
// No specific action is required here, can perform any chipset specific programing // No specific action is required here, can perform any chipset specific programing
// //
//HostBridgeInstance->CanRestarted = FALSE; //HostBridgeInstance->CanRestarted = FALSE;
return EFI_SUCCESS;
break; break;
case EfiPciHostBridgeBeginResourceAllocation: case EfiPciHostBridgeBeginResourceAllocation:
@ -302,7 +303,6 @@ NotifyPhase(
// No specific action is required here, can perform any chipset specific programing // No specific action is required here, can perform any chipset specific programing
// //
//HostBridgeInstance->CanRestarted = FALSE; //HostBridgeInstance->CanRestarted = FALSE;
return EFI_SUCCESS;
break; break;
case EfiPciHostBridgeAllocateResources: case EfiPciHostBridgeAllocateResources:
@ -472,7 +472,6 @@ NotifyPhase(
HostBridgeInstance->ResourceSubmited = FALSE; HostBridgeInstance->ResourceSubmited = FALSE;
HostBridgeInstance->CanRestarted = TRUE; HostBridgeInstance->CanRestarted = TRUE;
return ReturnStatus; return ReturnStatus;
break;
case EfiPciHostBridgeEndResourceAllocation: case EfiPciHostBridgeEndResourceAllocation:
HostBridgeInstance->CanRestarted = FALSE; HostBridgeInstance->CanRestarted = FALSE;
@ -480,7 +479,7 @@ NotifyPhase(
default: default:
return EFI_INVALID_PARAMETER; return EFI_INVALID_PARAMETER;
}; // end switch }
return EFI_SUCCESS; return EFI_SUCCESS;
} }