Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81342?usp=email )
Change subject: vc/amd/opensil/genoa_poc/mpio: use device status for port_present ......................................................................
vc/amd/opensil/genoa_poc/mpio: use device status for port_present
Only report the port as present in the MPIO_PORT_DATA_INITIALIZER_PCIE macro parameter when the device is enabled; otherwise report the port as disabled.
Signed-off-by: Felix Held felix-coreboot@felixheld.de Change-Id: Ieaa2af6c5ff3fc7e25992e7fdf14d37ee4a57d62 --- M src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c 1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/81342/1
diff --git a/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c b/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c index d279555..2da8bf0 100644 --- a/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c +++ b/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c @@ -157,7 +157,8 @@ config->gpio_group); port.EngineData = engine_data; const MPIO_PORT_DATA port_data = - MPIO_PORT_DATA_INITIALIZER_PCIE(MpioPortEnabled, + MPIO_PORT_DATA_INITIALIZER_PCIE(is_dev_enabled(dev) ? + MpioPortEnabled : MpioPortDisabled, PCI_SLOT(devfn), PCI_FUNC(devfn), config->hotplug,