arm: a37xx: pci: Fix condition for CRS response
authorPali Rohár <pali@kernel.org>
Tue, 19 Oct 2021 09:05:01 +0000 (11:05 +0200)
committerStefan Roese <sr@denx.de>
Thu, 21 Oct 2021 05:39:05 +0000 (07:39 +0200)
commitbd4064ff8a82460d6a497faf66ac5830ffe452b1
tree4df84ba89b5deaa72d9f77625557aa07fdad6f04
parent7609e02a25c4d5347146912380cf287a1dd5b300
arm: a37xx: pci: Fix condition for CRS response

As stated in comment above the code, CRS response can be returned to OS
only for 4-byte PCI_VENDOR_ID config read request. So fix the code.

Fixes: 1d7ad68559e2 ("arm: a37xx: pci: Handle propagation of CRSSVE bit from PCIe Root Port")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pci/pci-aardvark.c