diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2017-02-08 16:42:26 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-02-08 16:42:26 -0500 |
commit | 70bc1b684b49781c882fec44023b37b7b45fe359 (patch) | |
tree | a6ed3a4492f5f6ec26c3d4896226f21530d22946 | |
parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 (diff) |
PCI: versatile: Configure PCIe MPS settings
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>
-rw-r--r-- | drivers/pci/host/pci-versatile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/host/pci-versatile.c b/drivers/pci/host/pci-versatile.c index b7dc07002f13..5ebee7d37ff5 100644 --- a/drivers/pci/host/pci-versatile.c +++ b/drivers/pci/host/pci-versatile.c | |||
@@ -124,7 +124,7 @@ static int versatile_pci_probe(struct platform_device *pdev) | |||
124 | int ret, i, myslot = -1; | 124 | int ret, i, myslot = -1; |
125 | u32 val; | 125 | u32 val; |
126 | void __iomem *local_pci_cfg_base; | 126 | void __iomem *local_pci_cfg_base; |
127 | struct pci_bus *bus; | 127 | struct pci_bus *bus, *child; |
128 | LIST_HEAD(pci_res); | 128 | LIST_HEAD(pci_res); |
129 | 129 | ||
130 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 130 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
@@ -204,6 +204,8 @@ static int versatile_pci_probe(struct platform_device *pdev) | |||
204 | 204 | ||
205 | pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci); | 205 | pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci); |
206 | pci_assign_unassigned_bus_resources(bus); | 206 | pci_assign_unassigned_bus_resources(bus); |
207 | list_for_each_entry(child, &bus->children, node) | ||
208 | pcie_bus_configure_settings(child); | ||
207 | pci_bus_add_devices(bus); | 209 | pci_bus_add_devices(bus); |
208 | 210 | ||
209 | return 0; | 211 | return 0; |