]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: a37xx: pci: Do not allow setting ROM BAR on PCI Bridge
authorPali Rohár <pali@kernel.org>
Thu, 11 Nov 2021 15:35:48 +0000 (16:35 +0100)
committerStefan Roese <sr@denx.de>
Wed, 15 Dec 2021 07:57:36 +0000 (08:57 +0100)
commitfed5beca18f3562c4404de5f76fefdd3e06a46f5
tree1f7a8423a4cf9d8b67c333aecdbbee5d81709318
parenta48e4287d61a08663bb95bc515c751c342e0ffb6
arm: a37xx: pci: Do not allow setting ROM BAR on PCI Bridge

PCI Bridge which represents aardvark PCIe Root Port has Expansion ROM Base
Address register at offset 0x30 but its meaning is different than PCI's
Expansion ROM BAR register. Only address format of register is same.

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

Fixes: cb056005dc67 ("arm: a37xx: pci: Add support for accessing PCI Bridge on root bus")
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-aardvark.c