sb/intel/bd82x6x/pch: Mark static devices hidden
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 <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78230 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
parent
2fcef78ff8
commit
653459016d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue