X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=DuetPkg%2FPciBusNoEnumerationDxe%2FPciEnumeratorSupport.c;fp=DuetPkg%2FPciBusNoEnumerationDxe%2FPciEnumeratorSupport.c;h=ca300cf675f70d01163f2f0ba07fdd99767ecd55;hb=ba33c80fc594404872bc6f33e48d38836e9384a0;hp=80b2b6b24d24f7bc8e0ee27d615c0d863779dd8e;hpb=e89d672110aaf1c5a85404375ca6767b099d3b50;p=mirror_edk2.git diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciEnumeratorSupport.c b/DuetPkg/PciBusNoEnumerationDxe/PciEnumeratorSupport.c index 80b2b6b24d..ca300cf675 100644 --- a/DuetPkg/PciBusNoEnumerationDxe/PciEnumeratorSupport.c +++ b/DuetPkg/PciBusNoEnumerationDxe/PciEnumeratorSupport.c @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.
+Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.
(C) Copyright 2015 Hewlett Packard Enterprise Development LP
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -257,13 +257,14 @@ Returns: } // - // Deep enumerate the next level bus + // If the PCI bridge is initialized then enumerate the next level bus // - Status = PciPciDeviceInfoCollector ( - PciIoDevice, - (UINT8) (SecBus) - ); - + if (SecBus != 0) { + Status = PciPciDeviceInfoCollector ( + PciIoDevice, + (UINT8) (SecBus) + ); + } } if (Func == 0 && !IS_PCI_MULTI_FUNC (&Pci)) {