MdeModulePkg: Fix OptionROM scanning

The Option ROM scanner can't work as enumeration was done by the
first stage bootloader. Running it will disable the ability of the
PCIPlatform code to scan for ROMs.

Required for the following patch that enables custom Option ROM
scanning using gPciPlatformProtocol.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
This commit is contained in:
Patrick Rudolph
2020-05-15 16:47:18 +02:00
committed by Jeremy Soller
parent 168bf9514f
commit 28d4682274

View File

@@ -2530,10 +2530,12 @@ PciEnumeratorLight (
// //
RemoveRejectedPciDevices (RootBridgeDev->Handle, RootBridgeDev); RemoveRejectedPciDevices (RootBridgeDev->Handle, RootBridgeDev);
if (!PcdGetBool (PcdPciDisableBusEnumeration)) {
// //
// Process option rom light // Process option rom light
// //
ProcessOptionRomLight (RootBridgeDev); ProcessOptionRomLight (RootBridgeDev);
}
// //
// Determine attributes for all devices under this root bridge // Determine attributes for all devices under this root bridge