summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2013-07-22 07:35:51 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2013-07-22 07:35:51 +0000
commitcfdb673785742c673b7b18abf87930962dfd037c (patch)
tree823c1fd7e30a2e4a58f2d75f53176f5b5f2ad874
parent775180651d4bd91cc021a0a4d6c229848dde0599 (diff)
downloadedk2-cfdb673785742c673b7b18abf87930962dfd037c.zip
edk2-cfdb673785742c673b7b18abf87930962dfd037c.tar.gz
edk2-cfdb673785742c673b7b18abf87930962dfd037c.tar.bz2
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
-rw-r--r--PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c b/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.c
index f14700e..83fcdf4 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.<BR>
+Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR>
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;
}