arm: a37xx: pci: Handle propagation of CRSSVE bit from PCIe Root Port
authorPali Rohár <pali@kernel.org>
Sat, 25 Sep 2021 22:54:44 +0000 (00:54 +0200)
committerStefan Roese <sr@denx.de>
Fri, 8 Oct 2021 06:37:55 +0000 (08:37 +0200)
commit1d7ad68559e2238d42730c7de0a3d5e159d72cdd
tree7007644edd029f3f0f2c7235f48a2e030cf84637
parent95e101e86ae9d4dbc29ab82bcf1cfa8820a7ba4a
arm: a37xx: pci: Handle propagation of CRSSVE bit from PCIe Root Port

Now that PCI Bridge (PCIe Root Port) for Aardvark is emulated in U-Boot,
add support for handling and propagation of CRSSVE bit.

When CRSSVE bit is unset (default), driver has to reissue config
read/write request on CRS response.

CRSSVE bit is supported only when CRSVIS bit is provided in read-only
Root Capabilities register. So manually inject this CRSVIS bit into read
response for that register.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pci/pci-aardvark.c
include/pci.h