vc/amd/opensil/genoa_poc/mpio: add debug output for unused chip

Print that the MPIO chip of one of the MPIO-related PCI device functions
is unused and is skipped, if the type is IFTYPE_UNUSED and the
corresponding PCI device function isn't enabled. This allows to
differentiate between this case and the case where the type isn't
IFTYPE_UNUSED.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I4fc28d39a229494b487b300b28f92bf3adad66f5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81384
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Varshit Pandya <pandyavarshit@gmail.com>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Felix Held 2024-03-21 22:24:26 +01:00
parent d7738f7dd2
commit 87fa1d07b5

View File

@ -138,6 +138,8 @@ static void per_device_config(MPIOCLASS_INPUT_BLK *mpio_data, struct device *dev
if (is_dev_enabled(dev)) {
printk(BIOS_WARNING, "Unused MPIO chip, disabling PCI device.\n");
dev->enabled = false;
} else {
printk(BIOS_DEBUG, "Unused MPIO chip, skipping.\n");
}
return;
}