summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DuetPkg/PciBusNoEnumerationDxe/PciEnumeratorSupport.c15
1 files changed, 8 insertions, 7 deletions
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.<BR>
+Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
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)) {