]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PCI: versatile: Configure PCIe MPS settings
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 8 Feb 2017 21:42:26 +0000 (15:42 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 8 Feb 2017 21:42:26 +0000 (15:42 -0600)
Make sure PCIe MPS settings are valid when we enumerate a new hierarchy.

Based-on-patch-by: Jon Mason <jon.mason@broadcom.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-versatile.c

index b7dc07002f132c6ba31189a66ed4e7231733ba3a..5ebee7d37ff5f0d59e5c032ab0dc9af4b5e3dbbe 100644 (file)
@@ -124,7 +124,7 @@ static int versatile_pci_probe(struct platform_device *pdev)
        int ret, i, myslot = -1;
        u32 val;
        void __iomem *local_pci_cfg_base;
-       struct pci_bus *bus;
+       struct pci_bus *bus, *child;
        LIST_HEAD(pci_res);
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
@@ -204,6 +204,8 @@ static int versatile_pci_probe(struct platform_device *pdev)
 
        pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci);
        pci_assign_unassigned_bus_resources(bus);
+       list_for_each_entry(child, &bus->children, node)
+               pcie_bus_configure_settings(child);
        pci_bus_add_devices(bus);
 
        return 0;