summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-08-28 05:33:36 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-08-28 05:33:36 +0000
commit0c3312f50366f7e1cb822857dcde5e1f1238ce58 (patch)
treed9b340ab1c771cd601713570654a3940f540ff37 /IntelFrameworkModulePkg
parent93c288f2fb70d7e3efb30242e663efb569fd7b22 (diff)
downloadedk2-platforms-0c3312f50366f7e1cb822857dcde5e1f1238ce58.tar.xz
StartPciDevicesOnBridge() should correct return value.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9205 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c11
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h4
2 files changed, 10 insertions, 5 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c
index bae0109095..baad1ccd72 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c
@@ -586,7 +586,7 @@ DeRegisterPciDevice (
}
/**
- Start to manage the PCI device on specified the root bridge or PCI-PCI Bridge
+ Start to manage the PCI device on the specified root bridge or PCI-PCI Bridge.
@param Controller The root bridge handle.
@param RootBridge A pointer to the PCI_IO_DEVICE.
@@ -597,7 +597,7 @@ DeRegisterPciDevice (
@retval EFI_NOT_READY Device is not allocated.
@retval EFI_UNSUPPORTED Device only support PCI-PCI bridge.
@retval EFI_NOT_FOUND Can not find the specific device.
- @retval EFI_SUCCESS Success to start Pci device on bridge.
+ @retval EFI_SUCCESS Success to start Pci devices on bridge.
**/
EFI_STATUS
@@ -617,6 +617,7 @@ StartPciDevicesOnBridge (
LIST_ENTRY *CurrentLink;
UINT64 Supports;
+ PciIoDevice = NULL;
CurrentLink = RootBridge->ChildList.ForwardLink;
while (CurrentLink != NULL && CurrentLink != &RootBridge->ChildList) {
@@ -749,7 +750,11 @@ StartPciDevicesOnBridge (
}
}
- return EFI_NOT_FOUND;
+ if (PciIoDevice == NULL) {
+ return EFI_NOT_FOUND;
+ } else {
+ return EFI_SUCCESS;
+ }
}
/**
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h
index d80088a246..e97e90dea1 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h
@@ -146,7 +146,7 @@ DeRegisterPciDevice (
);
/**
- Start to manage the PCI device on specified the root bridge or PCI-PCI Bridge
+ Start to manage the PCI device on the specified root bridge or PCI-PCI Bridge.
@param Controller The root bridge handle.
@param RootBridge A pointer to the PCI_IO_DEVICE.
@@ -157,7 +157,7 @@ DeRegisterPciDevice (
@retval EFI_NOT_READY Device is not allocated.
@retval EFI_UNSUPPORTED Device only support PCI-PCI bridge.
@retval EFI_NOT_FOUND Can not find the specific device.
- @retval EFI_SUCCESS Success to start Pci device on bridge.
+ @retval EFI_SUCCESS Success to start Pci devices on bridge.
**/
EFI_STATUS