pci: mvebu: Ensure that root port is always on root zero bus
authorPali Rohár <pali@kernel.org>
Tue, 15 Feb 2022 10:34:01 +0000 (11:34 +0100)
committerStefan Roese <sr@denx.de>
Thu, 17 Feb 2022 13:17:07 +0000 (14:17 +0100)
commit0eebc3dbe5659cc0163fd37ea87727edd8343379
tree4f5a68d814bbbfcf80410c9888869f0b86070fac
parent682bad8cec8fc38d8b15b035569c94800ec653d0
pci: mvebu: Ensure that root port is always on root zero bus

Writing to the PCI_PRIMARY_BUS register of the root port should not change
bus number on which is root port present.

Same change and exactly same fix as was done in commit for pci-aardvark.c.

Fixes: a7b61ab58d5d ("pci: pci_mvebu: Properly configure and use PCI Bridge (PCIe Root Port)")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pci/pci_mvebu.c