linux-stable/drivers/pci/controller
Pali Rohár e904b46073 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 09:19:50 +01:00
..
dwc PCI: qcom: Use PHY_REFCLK_USE_PAD only for ipq8064 2021-03-04 10:26:10 +01:00
Kconfig
Makefile
pci-aardvark.c PCI: pci-bridge-emul: Correctly set PCIe capabilities 2022-01-27 09:19:50 +01:00
pci-ftpci100.c
pci-host-common.c
pci-host-generic.c
pci-hyperv-intf.c
pci-hyperv.c PCI: hv: Add check for hyperv_initialized in init_hv_pci_drv() 2021-07-14 16:53:18 +02:00
pci-mvebu.c PCI: pci-bridge-emul: Correctly set PCIe capabilities 2022-01-27 09:19:50 +01:00
pci-rcar-gen2.c
pci-tegra.c PCI: tegra: Add missing MODULE_DEVICE_TABLE 2021-07-20 16:10:47 +02:00
pci-thunder-ecam.c PCI: thunder: Fix compile testing 2021-05-22 11:38:28 +02:00
pci-thunder-pem.c PCI: thunder: Fix compile testing 2021-05-22 11:38:28 +02:00
pci-v3-semi.c
pci-versatile.c
pci-xgene-msi.c PCI: xgene-msi: Fix race in installing chained irq handler 2021-03-17 17:03:44 +01:00
pci-xgene.c
pcie-altera-msi.c
pcie-altera.c
pcie-cadence-ep.c
pcie-cadence-host.c
pcie-cadence.c
pcie-cadence.h
pcie-iproc-bcma.c
pcie-iproc-msi.c PCI: iproc: Support multi-MSI only on uniprocessor kernel 2021-07-20 16:10:50 +02:00
pcie-iproc-platform.c
pcie-iproc.c PCI: iproc: Fix out-of-bound array accesses 2020-12-30 11:51:14 +01:00
pcie-iproc.h
pcie-mediatek.c PCI: mediatek: Add missing of_node_put() to fix reference leak 2021-03-17 17:03:44 +01:00
pcie-mobiveil.c
pcie-rcar.c
pcie-rockchip-ep.c
pcie-rockchip-host.c
pcie-rockchip.c
pcie-rockchip.h
pcie-tango.c
pcie-xilinx-nwl.c PCI: xilinx-nwl: Enable the clock through CCF 2021-09-22 12:26:22 +02:00
pcie-xilinx.c
vmd.c