]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit1fd6e482583a581a474b3c1ea94b8ad1f82db8ae
treeedc6457fe5886a9702697ff9a6920aca726a78c0
parent9ae4e6c4112fe9e43ea96748ab2a2f3fe97f5fca
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: 18e57fe33755 ("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