From cbc24926213be28321fc129bdb8226d1588a3918 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Wed, 29 Apr 2015 21:59:47 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- drivers/pci/pci.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/pci/pci.c') diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 470ea664e9..3a0e7a5f4e 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -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; -- cgit v1.2.3