]> 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)
commitefbd72a9eafe1ca6b6fa3db998ea6ed359099b7d
tree49542a7fa7ecd8fbf6abfcf4f7a3f3e63422aebc
parent522c051de3872fe50c1904ad730d905c3771f027
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: 3168fecd14ca ("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