From 653459016d9fc6f13532e4bc9d52f98918602739 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Tue, 3 Oct 2023 11:35:15 +0200 Subject: [PATCH] sb/intel/bd82x6x/pch: Mark static devices hidden MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because integrated PCI devices are hidden in chip_ops the PCI enumeration code never sees them. When hiding static devices mark them as hidden so the PCI enumeration no longer complains about them being missing, even though they are present and were working just fine. Test: Disabled southbridge devices no longer appear in "Leftover static devices:" log. Change-Id: Iae70072a85b62a456102190a5f72f4d652ad6d5a Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/78230 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/southbridge/intel/bd82x6x/pch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/southbridge/intel/bd82x6x/pch.c b/src/southbridge/intel/bd82x6x/pch.c index c668f9a6b9..a7ab83a24b 100644 --- a/src/southbridge/intel/bd82x6x/pch.c +++ b/src/southbridge/intel/bd82x6x/pch.c @@ -131,6 +131,10 @@ void pch_iobp_update(u32 address, u32 andvalue, u32 orvalue) /* 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) {