PCI: fill in bus primary field
This was erroneously left uninitialzed as nothing was using it. The i.MX6 PCI driver needs this to be filled properly to decide if a config space access is allowed for a specific devfn. This fixes PCI enumeration on the Gateworks GW54xx board. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
2a8bc957a7
commit
cbc2492621
|
@ -368,6 +368,7 @@ unsigned int pci_scan_bus(struct pci_bus *bus)
|
|||
|
||||
child_bus->parent = &dev->dev;
|
||||
child_bus->number = bus_index++;
|
||||
child_bus->primary = bus->number;
|
||||
list_add_tail(&child_bus->node, &bus->children);
|
||||
dev->subordinate = child_bus;
|
||||
|
||||
|
|
Loading…
Reference in New Issue