aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci/controller/pci-mvebu.c
diff options
context:
space:
mode:
authorGravatar Pali Rohár <pali@kernel.org> 2022-08-24 13:21:24 +0200
committerGravatar Lorenzo Pieralisi <lpieralisi@kernel.org> 2022-08-25 12:07:56 +0200
commit658aea35ab88deca19705413199933c2cef9bac8 (patch)
tree5c4048fd22e0e59c1e32dc81efaa7ed0dd9905e6 /drivers/pci/controller/pci-mvebu.c
parentLinux 6.0-rc1 (diff)
downloadlinux-658aea35ab88deca19705413199933c2cef9bac8.tar.gz
linux-658aea35ab88deca19705413199933c2cef9bac8.tar.bz2
linux-658aea35ab88deca19705413199933c2cef9bac8.zip
PCI: pci-bridge-emul: Set position of PCI capabilities to real HW value
mvebu and aardvark HW have PCIe capabilities on different offset in PCI config space. Extend pci-bridge-emul.c code to allow setting custom driver custom value where PCIe capabilities starts. With this change PCIe capabilities of both drivers are reported at the same location as where they are reported by U-Boot - in their real HW offset. Link: https://lore.kernel.org/r/20220824112124.21675-1-pali@kernel.org Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Diffstat (limited to 'drivers/pci/controller/pci-mvebu.c')
-rw-r--r--drivers/pci/controller/pci-mvebu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/controller/pci-mvebu.c b/drivers/pci/controller/pci-mvebu.c
index af915c951f06..0fdbb5585fec 100644
--- a/drivers/pci/controller/pci-mvebu.c
+++ b/drivers/pci/controller/pci-mvebu.c
@@ -946,6 +946,7 @@ static int mvebu_pci_bridge_emul_init(struct mvebu_pcie_port *port)
bridge->subsystem_vendor_id = ssdev_id & 0xffff;
bridge->subsystem_id = ssdev_id >> 16;
bridge->has_pcie = true;
+ bridge->pcie_start = PCIE_CAP_PCIEXP;
bridge->data = port;
bridge->ops = &mvebu_pci_bridge_emul_ops;