]> git.itanic.dy.fi Git - linux-stable/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)
commitfdaa3725831972284ef2779ddba00491d9dbbfca
tree0eef97b6d2b90fce5463195471cd7665585527a8
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
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 1dc831bf53fd ("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