]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: Marvell: Update PCIe fixup
authorPali Rohár <pali@kernel.org>
Tue, 2 Nov 2021 17:12:58 +0000 (18:12 +0100)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Mon, 18 Jul 2022 10:32:01 +0000 (12:32 +0200)
commit60810b86ecebbc5fa9e291b9deab00bace9a73f7
tree0eef97b6d2b90fce5463195471cd7665585527a8
parentf040cca4b0da0180bf9de9141ef5c95f60f85182
ARM: Marvell: Update PCIe fixup

- The code relies on rc_pci_fixup being called, which only happens
  when CONFIG_PCI_QUIRKS is enabled, so add that to Kconfig. Omitting
  this causes a booting failure with a non-obvious cause.
- Update rc_pci_fixup to set the class properly, copying the
  more modern style from other places
- Correct the rc_pci_fixup comment

This patch just re-applies commit 7740d5bc096e ("ARM: Kirkwood: Update
PCI-E fixup") for all other Marvell ARM platforms which have same buggy
PCIe controller and do not use pci-mvebu.c controller driver yet.

Long-term goal for these Marvell ARM platforms should be conversion to
pci-mvebu.c controller driver and removal of these fixups in arch code.

Signed-off-by: Pali Rohár <pali@kernel.org>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: stable@vger.kernel.org
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm/mach-dove/Kconfig
arch/arm/mach-dove/pcie.c
arch/arm/mach-mv78xx0/pcie.c
arch/arm/mach-orion5x/Kconfig
arch/arm/mach-orion5x/pci.c