PCI: aardvark: Fix reporting CRS value
authorPali Rohár <pali@kernel.org>
Thu, 22 Jul 2021 14:40:41 +0000 (16:40 +0200)
committerDom Cobley <popcornmix@gmail.com>
Thu, 14 Oct 2021 11:33:01 +0000 (12:33 +0100)
commit1d4dfe03f0f31a27f8ab242d03f34cd51d427980
treed01081febd3cb88ce1dc80e650cb2f9d9fc3a20a
parent37f72426158f44eed0b4123c2f7eee111d0c0535
PCI: aardvark: Fix reporting CRS value

commit 43f5c77bcbd27cce70bf33c2b86d6726ce95dd66 upstream.

Set CRSVIS flag in emulated root PCI bridge to indicate support for
Completion Retry Status.

Add check for CRSSVE flag from root PCI brige when issuing Configuration
Read Request via PIO to correctly returns fabricated CRS value as it is
required by PCIe spec.

Link: https://lore.kernel.org/r/20210722144041.12661-5-pali@kernel.org
Fixes: 8a3ebd8de328 ("PCI: aardvark: Implement emulated root PCI bridge config space")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: stable@vger.kernel.org # e0d9d30b7354 ("PCI: pci-bridge-emul: Fix big-endian support")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/controller/pci-aardvark.c