From b526da297c055b8cba02b3f8c8df5c9bbfd57c05 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 11 Mar 2024 22:31:54 +0100 Subject: 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 Change-Id: Ieaa2af6c5ff3fc7e25992e7fdf14d37ee4a57d62 Reviewed-on: https://review.coreboot.org/c/coreboot/+/81342 Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) Reviewed-by: Varshit Pandya --- src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vendorcode/amd') diff --git a/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c b/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c index cae9d4b8e7..2ad10af636 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 @@ static void per_device_config(MPIOCLASS_INPUT_BLK *mpio_data, struct device *dev 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, -- cgit v1.2.3