Merge tag 'pci-v5.9-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci

Pull PCI fixes from Bjorn Helgaas:

- Fix rockchip regression in rockchip_pcie_valid_device() (Lorenzo
Pieralisi)

- Add Pali Rohár as aardvark PCI maintainer (Pali Rohár)

* tag 'pci-v5.9-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
MAINTAINERS: Add Pali Rohár as aardvark PCI maintainer
PCI: rockchip: Fix bus checks in rockchip_pcie_valid_device()

+5 -7
+1
MAINTAINERS
··· 13182 13183 PCI DRIVER FOR AARDVARK (Marvell Armada 3700) 13184 M: Thomas Petazzoni <thomas.petazzoni@bootlin.com> 13185 L: linux-pci@vger.kernel.org 13186 L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) 13187 S: Maintained
··· 13182 13183 PCI DRIVER FOR AARDVARK (Marvell Armada 3700) 13184 M: Thomas Petazzoni <thomas.petazzoni@bootlin.com> 13185 + M: Pali Rohár <pali@kernel.org> 13186 L: linux-pci@vger.kernel.org 13187 L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) 13188 S: Maintained
+4 -7
drivers/pci/controller/pcie-rockchip-host.c
··· 71 static int rockchip_pcie_valid_device(struct rockchip_pcie *rockchip, 72 struct pci_bus *bus, int dev) 73 { 74 - /* access only one slot on each root port */ 75 - if (pci_is_root_bus(bus) && dev > 0) 76 - return 0; 77 - 78 /* 79 - * do not read more than one device on the bus directly attached 80 * to RC's downstream side. 81 */ 82 - if (pci_is_root_bus(bus->parent) && dev > 0) 83 - return 0; 84 85 return 1; 86 }
··· 71 static int rockchip_pcie_valid_device(struct rockchip_pcie *rockchip, 72 struct pci_bus *bus, int dev) 73 { 74 /* 75 + * Access only one slot on each root port. 76 + * Do not read more than one device on the bus directly attached 77 * to RC's downstream side. 78 */ 79 + if (pci_is_root_bus(bus) || pci_is_root_bus(bus->parent)) 80 + return dev == 0; 81 82 return 1; 83 }