pci: pci_mvebu: Do not allow setting ROM BAR on PCI Bridge
authorPali Rohár <pali@kernel.org>
Thu, 11 Nov 2021 15:35:45 +0000 (16:35 +0100)
committerStefan Roese <sr@denx.de>
Wed, 15 Dec 2021 07:57:36 +0000 (08:57 +0100)
commita48e4287d61a08663bb95bc515c751c342e0ffb6
treeedc6457fe5886a9702697ff9a6920aca726a78c0
parente967c84a6d211562ff800a00b0c30d7aa808ae4b
pci: pci_mvebu: Do not allow setting ROM BAR on PCI Bridge

The PCI Bridge which represents mvebu PCIe Root Port has Expansion ROM
Base Address register at offset 0x30 but its meaning is different that
of PCI's Expansion ROM BAR register, although the address format of
the register is the same.

In reality, this device does not have any configurable PCI BARs. So
ensure that write operation into BARs (including Expansion ROM BAR) is a
noop and registers always contain zero address which indicates that BARs
are unsupported.

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