Return PciRootBridges instead of NULL and set
PcdPciDisableBusEnumeration to FALSE when
root bridge count is zero.
Reviewed-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Gua Guo <gua.guo@intel.com>
Signed-off-by: Kavya <k.kavyax.sravanthi@intel.com>
}\r
\r
if (PciRootBridgeInfo->Count == 0) {\r
+ PcdSetBoolS (PcdPciDisableBusEnumeration, FALSE);\r
return NULL;\r
}\r
\r
if (PciRootBridgeInfo->ResourceAssigned) {\r
PcdSetBoolS (PcdPciDisableBusEnumeration, TRUE);\r
} else {\r
- DEBUG ((DEBUG_ERROR, "There is root bridge whose ResourceAssigned is FALSE\n"));\r
+ DEBUG ((DEBUG_INFO, "There is root bridge whose ResourceAssigned is FALSE\n"));\r
PcdSetBoolS (PcdPciDisableBusEnumeration, FALSE);\r
- return NULL;\r
}\r
\r
return PciRootBridges;\r