]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Call Max Payload Size-related fixup quirks early
authorMarek Behún <kabel@kernel.org>
Thu, 24 Jun 2021 17:14:17 +0000 (19:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Sep 2021 06:56:42 +0000 (08:56 +0200)
commit10577a383594159d6678bf6645f7094d160a8b0a
treee2102cb44049b57affb9347dbf47713807d1c054
parent8200dbea0108a8715e224946011396dc6d4e11c8
PCI: Call Max Payload Size-related fixup quirks early

commit b8da302e2955fe4d41eb9d48199242674d77dbe0 upstream.

pci_device_add() calls HEADER fixups after pci_configure_device(), which
configures Max Payload Size.

Convert MPS-related fixups to EARLY fixups so pci_configure_mps() takes
them into account.

Fixes: e772deb749172 ("PCI: Set MPS to match upstream bridge")
Link: https://lore.kernel.org/r/20210624171418.27194-1-kabel@kernel.org
Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/quirks.c