linux/drivers/pci/controller
Pali Rohár 7aeeb9fe9c PCI: pci-bridge-emul: Correctly set PCIe capabilities
commit 1f1050c5e1 upstream.

Older mvebu hardware provides PCIe Capability structure only in version 1.
New mvebu and aardvark hardware provides it in version 2. So do not force
version to 2 in pci_bridge_emul_init() and rather allow drivers to set
correct version. Drivers need to set version in pcie_conf.cap field without
overwriting PCI_CAP_LIST_ID register. Both drivers (mvebu and aardvark) do
not provide slot support yet, so do not set PCI_EXP_FLAGS_SLOT flag.

Link: https://lore.kernel.org/r/20211124155944.1290-6-pali@kernel.org
Fixes: 23a5fba4d9 ("PCI: Introduce PCI bridge emulated config space common logic")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-27 10:54:26 +01:00
..
cadence PCI: cadence: Add cdns_plat_pcie_probe() missing return 2021-11-18 14:03:49 +01:00
dwc PCI: uniphier: Serialize INTx masking/unmasking and fix the bit operation 2021-11-18 14:04:23 +01:00
mobiveil
Kconfig
Makefile
pci-aardvark.c PCI: pci-bridge-emul: Correctly set PCIe capabilities 2022-01-27 10:54:26 +01:00
pci-ftpci100.c PCI: ftpci100: Rename macro name collision 2021-07-20 16:05:46 +02:00
pci-host-common.c
pci-host-generic.c
pci-hyperv-intf.c
pci-hyperv.c PCI: hv: Fix sleep while in non-sleep context when removing child devices from the bus 2021-10-13 10:04:25 +02:00
pci-loongson.c
pci-mvebu.c PCI: pci-bridge-emul: Correctly set PCIe capabilities 2022-01-27 10:54:26 +01:00
pci-rcar-gen2.c
pci-tegra.c PCI: tegra: Fix OF node reference leak 2021-09-22 12:28:00 +02:00
pci-thunder-ecam.c
pci-thunder-pem.c
pci-v3-semi.c
pci-versatile.c
pci-xgene-msi.c
pci-xgene.c PCI: xgene: Fix IB window setup 2022-01-27 10:54:26 +01:00
pcie-altera-msi.c
pcie-altera.c
pcie-brcmstb.c
pcie-hisi-error.c
pcie-iproc-bcma.c PCI: iproc: Fix BCMA probe resource handling 2021-09-22 12:28:02 +02:00
pcie-iproc-msi.c PCI: iproc: Support multi-MSI only on uniprocessor kernel 2021-07-20 16:05:52 +02:00
pcie-iproc-platform.c
pcie-iproc.c
pcie-iproc.h
pcie-mediatek.c
pcie-rcar-ep.c PCI: rcar: Fix runtime PM imbalance in rcar_pcie_ep_probe() 2021-09-22 12:28:00 +02:00
pcie-rcar-host.c
pcie-rcar.c
pcie-rcar.h
pcie-rockchip-ep.c
pcie-rockchip-host.c PCI: rockchip: Register IRQ handlers after device and data are ready 2021-07-20 16:05:49 +02:00
pcie-rockchip.c
pcie-rockchip.h
pcie-tango.c
pcie-xilinx-cpm.c
pcie-xilinx-nwl.c PCI: xilinx-nwl: Enable the clock through CCF 2021-09-18 13:40:10 +02:00
pcie-xilinx.c
vmd.c