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 Tim Crawford
parent 27585e73da
commit 1966ffb1c3

View File

@@ -2551,10 +2551,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