]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: a37xx: pci: Do not allow setting bars on PCI Bridge
authorPali Rohár <pali@kernel.org>
Tue, 12 Oct 2021 11:19:19 +0000 (13:19 +0200)
committerStefan Roese <sr@denx.de>
Thu, 21 Oct 2021 05:39:05 +0000 (07:39 +0200)
commitaaddce0d35f5ec3f9dc021401c56081a3bd05ebd
treee28534f447d31e1ecc247c5ad058c5a308c79eae
parent6d7bfb658e6dccbf2c82981558239685cb664b29
arm: a37xx: pci: Do not allow setting bars on PCI Bridge

PCI Bridge which represents Aardvark PCIe Root Port does not have
configurable bars.

So ensure that write operation to bars registers on PCI Bridge is noop and
bars registers always contain zero address which indicates that bars are
unsupported.

After this change U-Boot 'pci bar 0.0.0' command does not show any
allocated bars for PCI Bridge device.

Signed-off-by: Pali Rohár <pali@kernel.org>
Fixes: cb056005dc67 ("arm: a37xx: pci: Add support for accessing PCI Bridge on root bus")
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pci/pci-aardvark.c