Hack to add 32 to subordinate

This commit is contained in:
Jeremy Soller
2019-10-09 16:44:38 -06:00
parent f0e552d664
commit 9f16fa4e74

View File

@@ -1218,6 +1218,11 @@ static void pci_bridge_route(struct bus *link, scan_state state)
if (state == PCI_ROUTE_SCAN) {
link->secondary = parent->subordinate + 1;
link->subordinate = link->secondary;
if (dev->vendor == 0x8086 && dev->device == 0x15e7 && PCI_SLOT(dev->path.pci.devfn) == 1) {
printk(BIOS_DEBUG, "system76: HACK: add 32 to subordinate\n");
link->subordinate += 32;
}
printk(BIOS_DEBUG, "system76: pci_bridge_route: assigning link secondary %d subordinate %d\n", link->secondary, link->subordinate);
}