From: Ruiyu Ni Date: Mon, 22 Jul 2013 07:35:51 +0000 (+0000) Subject: Fix PciHostBridge driver to return success for EfiPciHostBridgeEndEnumeration to... X-Git-Tag: edk2-stable201903~12408 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=cfdb673785742c673b7b18abf87930962dfd037c;p=mirror_edk2.git Fix PciHostBridge driver to return success for EfiPciHostBridgeEndEnumeration to fix OVMF boot no display issue. Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14498 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c b/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c index f14700e3c4..83fcdf4f1a 100644 --- a/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c +++ b/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c @@ -1,7 +1,7 @@ /** @file Provides the basic interfaces to abstract a PCI Host Bridge Resource Allocation -Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.
+Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are 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 @@ -281,12 +281,14 @@ NotifyPhase( } break; + case EfiPciHostBridgeEndEnumeration: + break; + case EfiPciHostBridgeBeginBusAllocation: // // No specific action is required here, can perform any chipset specific programing // HostBridgeInstance->CanRestarted = FALSE; - return EFI_SUCCESS; break; case EfiPciHostBridgeEndBusAllocation: @@ -294,7 +296,6 @@ NotifyPhase( // No specific action is required here, can perform any chipset specific programing // //HostBridgeInstance->CanRestarted = FALSE; - return EFI_SUCCESS; break; case EfiPciHostBridgeBeginResourceAllocation: @@ -302,7 +303,6 @@ NotifyPhase( // No specific action is required here, can perform any chipset specific programing // //HostBridgeInstance->CanRestarted = FALSE; - return EFI_SUCCESS; break; case EfiPciHostBridgeAllocateResources: @@ -472,7 +472,6 @@ NotifyPhase( HostBridgeInstance->ResourceSubmited = FALSE; HostBridgeInstance->CanRestarted = TRUE; return ReturnStatus; - break; case EfiPciHostBridgeEndResourceAllocation: HostBridgeInstance->CanRestarted = FALSE; @@ -480,7 +479,7 @@ NotifyPhase( default: return EFI_INVALID_PARAMETER; - }; // end switch + } return EFI_SUCCESS; }