]> git.baikalelectronics.ru Git - uboot.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)
commitd191815e3c1c0e4ef1c62c31e30efc9d5b9eec03
treee28534f447d31e1ecc247c5ad058c5a308c79eae
parentdceafba8411452c13101474ef89459f92511d3be
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: 7b758b439474 ("arm: a37xx: pci: Add support for accessing PCI Bridge on root bus")
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pci/pci-aardvark.c