summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2017-02-08 15:43:45 -0600
committerBjorn Helgaas <helgaas@kernel.org>2017-02-10 11:36:14 -0600
commit7da7a1a66e7700903bbc9ed09256fc95da34d43d (patch)
tree9853b64cbe8bf3a41462f18256a8bdcf7d364c21 /drivers/pci
parent1ded56df3247d358390ae6dc09ccee620262ac5f (diff)
downloadop-kernel-dev-7da7a1a66e7700903bbc9ed09256fc95da34d43d.zip
op-kernel-dev-7da7a1a66e7700903bbc9ed09256fc95da34d43d.tar.gz
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>
Diffstat (limited to 'drivers/pci')
-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 142a166..1a61087 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)
struct device_node *dn = dev->of_node;
struct xgene_pcie_port *port;
resource_size_t iobase = 0;
- struct pci_bus *bus;
+ struct pci_bus *bus, *child;
int ret;
LIST_HEAD(res);
@@ -678,6 +678,8 @@ static int xgene_pcie_probe_bridge(struct platform_device *pdev)
pci_scan_child_bus(bus);
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;
OpenPOWER on IntegriCloud