diff options
author | Pali Rohár <pali@kernel.org> | 2022-08-24 13:21:24 +0200 |
---|---|---|
committer | Lorenzo Pieralisi <lpieralisi@kernel.org> | 2022-08-25 12:07:56 +0200 |
commit | 658aea35ab88deca19705413199933c2cef9bac8 (patch) | |
tree | 5c4048fd22e0e59c1e32dc81efaa7ed0dd9905e6 /drivers/pci/pci-bridge-emul.h | |
parent | Linux 6.0-rc1 (diff) | |
download | linux-658aea35ab88deca19705413199933c2cef9bac8.tar.xz 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/pci-bridge-emul.h')
-rw-r--r-- | drivers/pci/pci-bridge-emul.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci-bridge-emul.h b/drivers/pci/pci-bridge-emul.h index 71392b67471d..2a0e59c7f0d9 100644 --- a/drivers/pci/pci-bridge-emul.h +++ b/drivers/pci/pci-bridge-emul.h @@ -131,6 +131,8 @@ struct pci_bridge_emul { struct pci_bridge_reg_behavior *pci_regs_behavior; struct pci_bridge_reg_behavior *pcie_cap_regs_behavior; void *data; + u8 pcie_start; + u8 ssid_start; bool has_pcie; u16 subsystem_vendor_id; u16 subsystem_id; |