]> git.baikalelectronics.ru Git - uboot.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)
commitd967d3bffe7267e4ace3a61273b60ddce7ebeb85
tree1f7a8423a4cf9d8b67c333aecdbbee5d81709318
parent1fd6e482583a581a474b3c1ea94b8ad1f82db8ae
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: 7b758b439474 ("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