]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Move MPS configuration check to pci_configure_device()
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 20 Aug 2015 21:08:27 +0000 (16:08 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 22 May 2016 18:07:32 +0000 (11:07 -0700)
commit499a96e42673ea921e85a877de3e1b201248d29a
treef6e348f614419cd7c3a8aee6fe1009ab54b00fa9
parent136b886e0408016e33a59d5cab8c07e51d978287
PCI: Move MPS configuration check to pci_configure_device()

Previously we checked for invalid MPS settings, i.e., a device with MPS
different than its upstream bridge, in pcie_bus_detect_mps().  We only did
this if the arch or hotplug driver called pcie_bus_configure_settings(),
and then only if PCIe bus tuning was disabled (PCIE_BUS_TUNE_OFF).

Move the MPS checking code to pci_configure_device(), so we do it in the
pci_device_add() path for every device.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
(cherry picked from commit 9dae3a97297f71e884ed8e7664955bcacb86f010)

Orabug: 23237033

Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
drivers/pci/probe.c