mirror of https://github.com/acidanthera/audk.git
UefiPayloadPkg: Return PciRootBridges instead of NULL
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>
This commit is contained in:
parent
d5fd86f256
commit
2bb0020675
|
@ -549,6 +549,7 @@ RetrieveRootBridgeInfoFromHob (
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PciRootBridgeInfo->Count == 0) {
|
if (PciRootBridgeInfo->Count == 0) {
|
||||||
|
PcdSetBoolS (PcdPciDisableBusEnumeration, FALSE);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -589,9 +590,8 @@ RetrieveRootBridgeInfoFromHob (
|
||||||
if (PciRootBridgeInfo->ResourceAssigned) {
|
if (PciRootBridgeInfo->ResourceAssigned) {
|
||||||
PcdSetBoolS (PcdPciDisableBusEnumeration, TRUE);
|
PcdSetBoolS (PcdPciDisableBusEnumeration, TRUE);
|
||||||
} else {
|
} else {
|
||||||
DEBUG ((DEBUG_ERROR, "There is root bridge whose ResourceAssigned is FALSE\n"));
|
DEBUG ((DEBUG_INFO, "There is root bridge whose ResourceAssigned is FALSE\n"));
|
||||||
PcdSetBoolS (PcdPciDisableBusEnumeration, FALSE);
|
PcdSetBoolS (PcdPciDisableBusEnumeration, FALSE);
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return PciRootBridges;
|
return PciRootBridges;
|
||||||
|
|
Loading…
Reference in New Issue