From 0c3312f50366f7e1cb822857dcde5e1f1238ce58 Mon Sep 17 00:00:00 2001 From: vanjeff Date: Fri, 28 Aug 2009 05:33:36 +0000 Subject: StartPciDevicesOnBridge() should correct return value. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9205 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c | 11 ++++++++--- IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'IntelFrameworkModulePkg/Bus/Pci') 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 -- cgit v1.2.3