diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2017-02-08 16:37:47 -0500 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-02-08 16:37:47 -0500 |
| commit | ec6bd78a09d9967c4fcec53e7fabfaabd4f0e367 (patch) | |
| tree | d111bebca6682aa4f608f40f28ddf1ad8077d8cf /drivers/pci | |
| parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 (diff) | |
PCI: xilinx: 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/pcie-xilinx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/host/pcie-xilinx.c b/drivers/pci/host/pcie-xilinx.c index c8616fadccf1..7f030f5d750b 100644 --- a/drivers/pci/host/pcie-xilinx.c +++ b/drivers/pci/host/pcie-xilinx.c | |||
| @@ -632,7 +632,7 @@ static int xilinx_pcie_probe(struct platform_device *pdev) | |||
| 632 | { | 632 | { |
| 633 | struct device *dev = &pdev->dev; | 633 | struct device *dev = &pdev->dev; |
| 634 | struct xilinx_pcie_port *port; | 634 | struct xilinx_pcie_port *port; |
| 635 | struct pci_bus *bus; | 635 | struct pci_bus *bus, *child; |
| 636 | int err; | 636 | int err; |
| 637 | resource_size_t iobase = 0; | 637 | resource_size_t iobase = 0; |
| 638 | LIST_HEAD(res); | 638 | LIST_HEAD(res); |
| @@ -686,6 +686,8 @@ static int xilinx_pcie_probe(struct platform_device *pdev) | |||
| 686 | #ifndef CONFIG_MICROBLAZE | 686 | #ifndef CONFIG_MICROBLAZE |
| 687 | pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci); | 687 | pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci); |
| 688 | #endif | 688 | #endif |
| 689 | list_for_each_entry(child, &bus->children, node) | ||
| 690 | pcie_bus_configure_settings(child); | ||
| 689 | pci_bus_add_devices(bus); | 691 | pci_bus_add_devices(bus); |
| 690 | return 0; | 692 | return 0; |
| 691 | 693 | ||
