Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb36c445 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt
Browse files

powerpc/pci: Don't configure PCIe settings when PCI_PROBE_ONLY is set



We don't want to configure PCI Express Max Payload Size or
Max Read Request Size on systems that set that flag. The
firmware will have done it for us, and under hypervisors such
as pHyp we don't even see the parent switches and bridges and
thus can make no assumption on what values are safe to use.

Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent d12b524f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1732,7 +1732,7 @@ void __devinit pcibios_scan_phb(struct pci_controller *hose)
		hose->last_busno = bus->subordinate = pci_scan_child_bus(bus);
		hose->last_busno = bus->subordinate = pci_scan_child_bus(bus);


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