mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
7ce7d89f48
commit
ec6bd78a09
|
@ -632,7 +632,7 @@ static int xilinx_pcie_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct device *dev = &pdev->dev;
|
struct device *dev = &pdev->dev;
|
||||||
struct xilinx_pcie_port *port;
|
struct xilinx_pcie_port *port;
|
||||||
struct pci_bus *bus;
|
struct pci_bus *bus, *child;
|
||||||
int err;
|
int err;
|
||||||
resource_size_t iobase = 0;
|
resource_size_t iobase = 0;
|
||||||
LIST_HEAD(res);
|
LIST_HEAD(res);
|
||||||
|
@ -686,6 +686,8 @@ static int xilinx_pcie_probe(struct platform_device *pdev)
|
||||||
#ifndef CONFIG_MICROBLAZE
|
#ifndef CONFIG_MICROBLAZE
|
||||||
pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci);
|
pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci);
|
||||||
#endif
|
#endif
|
||||||
|
list_for_each_entry(child, &bus->children, node)
|
||||||
|
pcie_bus_configure_settings(child);
|
||||||
pci_bus_add_devices(bus);
|
pci_bus_add_devices(bus);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue