]> git.itanic.dy.fi Git - linux-stable/commit
PCI: pci-bridge-emul: Set position of PCI capabilities to real HW value
authorPali Rohár <pali@kernel.org>
Wed, 24 Aug 2022 11:21:24 +0000 (13:21 +0200)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Thu, 25 Aug 2022 10:07:56 +0000 (12:07 +0200)
commit658aea35ab88deca19705413199933c2cef9bac8
tree5c4048fd22e0e59c1e32dc81efaa7ed0dd9905e6
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
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>
drivers/pci/controller/pci-aardvark.c
drivers/pci/controller/pci-mvebu.c
drivers/pci/pci-bridge-emul.c
drivers/pci/pci-bridge-emul.h