Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/78230?usp=email )
Change subject: sb/intel/bd82x6x/pch: Mark static devices hidden ......................................................................
sb/intel/bd82x6x/pch: Mark static devices hidden
When hiding static devices mark them as hidden so the PCI enumeration no longer complains about them being missing.
Test: PCI: Disabled southbridge devices no longer appear in "Leftover static devices:" log.
Change-Id: Iae70072a85b62a456102190a5f72f4d652ad6d5a Signed-off-by: Patrick Rudolph patrick.rudolph@9elements.com --- M src/southbridge/intel/bd82x6x/pch.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/30/78230/1
diff --git a/src/southbridge/intel/bd82x6x/pch.c b/src/southbridge/intel/bd82x6x/pch.c index c9e66de..b523f63 100644 --- a/src/southbridge/intel/bd82x6x/pch.c +++ b/src/southbridge/intel/bd82x6x/pch.c @@ -131,6 +131,10 @@ /* Set bit in function disable register to hide this device */ static void pch_hide_devfn(unsigned int devfn) { + struct device *dev = pcidev_path_on_root(devfn); + if (dev) + dev->hidden = true; + switch (devfn) { case PCI_DEVFN(20, 0): /* xHCI */ if (pch_silicon_type() == PCH_TYPE_PPT) {