]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: aardvark: Fix reporting CRS value
authorPali Rohár <pali@kernel.org>
Thu, 22 Jul 2021 14:40:41 +0000 (16:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Sep 2021 12:07:05 +0000 (14:07 +0200)
commit70b329f0b34263c8cf04ecd1ecef62857282fc88
tree49542a7fa7ecd8fbf6abfcf4f7a3f3e63422aebc
parent6effd1097c5a6e2f1a192819fec671848cb8cbb0
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: 56faa9cfa347 ("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 # c6a366aa0ca1 ("PCI: pci-bridge-emul: Fix big-endian support")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/controller/pci-aardvark.c