9
0
Fork 0

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:
Lucas Stach 2015-04-29 21:59:47 +02:00 committed by Sascha Hauer
parent 2a8bc957a7
commit cbc2492621
1 changed files with 1 additions and 0 deletions

View File

@ -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;