Skip to content

Commit

Permalink
powerpc/pci: Call pcie_bus_configure_settings()
Browse files Browse the repository at this point in the history
This new function is used to properly setup the PCI Express Max Payload Size
(and in some circumstances Max Read Request Size).

Some systems will not operate properly if these aren't set correctly and
the firmware doesn't always do it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Benjamin Herrenschmidt committed Sep 20, 2011
1 parent fb82b83 commit 781fb7a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions arch/powerpc/kernel/pci-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1730,6 +1730,17 @@ void __devinit pcibios_scan_phb(struct pci_controller *hose)

if (mode == PCI_PROBE_NORMAL)
hose->last_busno = bus->subordinate = pci_scan_child_bus(bus);

/* Configure PCI Express settings */
if (bus) {
struct pci_bus *child;
list_for_each_entry(child, &bus->children, node) {
struct pci_dev *self = child->self;
if (!self)
continue;
pcie_bus_configure_settings(child, self->pcie_mpss);
}
}
}

static void fixup_hide_host_resource_fsl(struct pci_dev *dev)
Expand Down

0 comments on commit 781fb7a

Please sign in to comment.