aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2017-02-08 16:43:45 -0500
committerBjorn Helgaas <helgaas@kernel.org>2017-02-10 12:36:14 -0500
commit7da7a1a66e7700903bbc9ed09256fc95da34d43d (patch)
tree9853b64cbe8bf3a41462f18256a8bdcf7d364c21
parent1ded56df3247d358390ae6dc09ccee620262ac5f (diff)
PCI: xgene: 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-xgene.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/host/pci-xgene.c b/drivers/pci/host/pci-xgene.c
index 142a1669dd82..1a6108788f6f 100644
--- a/drivers/pci/host/pci-xgene.c
+++ b/drivers/pci/host/pci-xgene.c
@@ -635,7 +635,7 @@ static int xgene_pcie_probe_bridge(struct platform_device *pdev)
635 struct device_node *dn = dev->of_node; 635 struct device_node *dn = dev->of_node;
636 struct xgene_pcie_port *port; 636 struct xgene_pcie_port *port;
637 resource_size_t iobase = 0; 637 resource_size_t iobase = 0;
638 struct pci_bus *bus; 638 struct pci_bus *bus, *child;
639 int ret; 639 int ret;
640 LIST_HEAD(res); 640 LIST_HEAD(res);
641 641
@@ -678,6 +678,8 @@ static int xgene_pcie_probe_bridge(struct platform_device *pdev)
678 678
679 pci_scan_child_bus(bus); 679 pci_scan_child_bus(bus);
680 pci_assign_unassigned_bus_resources(bus); 680 pci_assign_unassigned_bus_resources(bus);
681 list_for_each_entry(child, &bus->children, node)
682 pcie_bus_configure_settings(child);
681 pci_bus_add_devices(bus); 683 pci_bus_add_devices(bus);
682 return 0; 684 return 0;
683 685