public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH stable-4.14] PCI: aardvark: Fix checking for PIO Non-posted Request
@ 2021-09-26 14:22 Pali Rohár
  2021-09-26 14:22 ` [PATCH stable-4.14] PCI: aardvark: Fix checking for PIO status Pali Rohár
  0 siblings, 1 reply; 2+ messages in thread
From: Pali Rohár @ 2021-09-26 14:22 UTC (permalink / raw)
  To: stable

commit 8ceeac307a79f68c0d0c72d6e48b82fa424204ec upstream.

PIO_NON_POSTED_REQ for PIO_STAT register is incorrectly defined. Bit 10 in
register PIO_STAT indicates the response is to a non-posted request.

Link: https://lore.kernel.org/r/20210624213345.3617-2-pali@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Marek Behún <kabel@kernel.org>
Cc: stable@vger.kernel.org
[pali: Backported to 4.14 version]
---
 drivers/pci/host/pci-aardvark.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/host/pci-aardvark.c b/drivers/pci/host/pci-aardvark.c
index f84166f99517..149d7bddb2a4 100644
--- a/drivers/pci/host/pci-aardvark.c
+++ b/drivers/pci/host/pci-aardvark.c
@@ -55,7 +55,7 @@
 #define   PIO_COMPLETION_STATUS_UR		1
 #define   PIO_COMPLETION_STATUS_CRS		2
 #define   PIO_COMPLETION_STATUS_CA		4
-#define   PIO_NON_POSTED_REQ			BIT(0)
+#define   PIO_NON_POSTED_REQ			BIT(10)
 #define PIO_ADDR_LS				(PIO_BASE_ADDR + 0x8)
 #define PIO_ADDR_MS				(PIO_BASE_ADDR + 0xc)
 #define PIO_WR_DATA				(PIO_BASE_ADDR + 0x10)
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-26 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-26 14:22 [PATCH stable-4.14] PCI: aardvark: Fix checking for PIO Non-posted Request Pali Rohár
2021-09-26 14:22 ` [PATCH stable-4.14] PCI: aardvark: Fix checking for PIO status Pali Rohár

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox