diff mbox

PCI: altera: Fix TLP completion status

Message ID a6d0bf66-d970-965d-9aae-667ec5e17fbf@windriver.com
State Changes Requested
Headers show

Commit Message

Yadi Hu Feb. 16, 2017, 9:54 a.m. UTC
PCI: altera: Fix TLP completion status

'Completion Status' value in TLP should be b15:13 while the fix is
using b14:12

Signed-off-by: Hu Yadi<yadi.hu@windriver.com>
---
  drivers/pci/host/pcie-altera.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ley Foon Tan Feb. 16, 2017, 10:07 a.m. UTC | #1
On Thu, Feb 16, 2017 at 5:54 PM, yhu2 <yadi.hu@windriver.com> wrote:
> PCI: altera: Fix TLP completion status
>
> 'Completion Status' value in TLP should be b15:13 while the fix is
> using b14:12
>
> Signed-off-by: Hu Yadi<yadi.hu@windriver.com>
> ---
>  drivers/pci/host/pcie-altera.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
Please resubmit again with git send-email .

Thanks.

Regards
Ley Foon
diff mbox

Patch

From 6c7563a2bb2d46d60a089d5d326bf14a2d868d78 Mon Sep 17 00:00:00 2001
From: "Hu Yadi" <yadi.hu@windriver.com>
Date: Thu, 16 Feb 2017 01:50:11 -0800
Subject: [PATCH] PCI: altera: Fix TLP completion status

'Completion Status' value in TLP should be b15:13 while the fix is
using b14:12

Signed-off-by: Hu Yadi<yadi.hu@windriver.com>
---
 drivers/pci/host/pcie-altera.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c
index dbac6fb..650862e 100644
--- a/drivers/pci/host/pcie-altera.c
+++ b/drivers/pci/host/pcie-altera.c
@@ -56,7 +56,7 @@ 
 #define TLP_CFG_DW2(bus, devfn, offset)	\
 				(((bus) << 24) | ((devfn) << 16) | (offset))
 #define TLP_REQ_ID(bus, devfn)		(((bus) << 8) | (devfn))
-#define TLP_COMP_STATUS(s)		(((s) >> 12) & 7)
+#define TLP_COMP_STATUS(s)		(((s) >> 13) & 7)
 #define TLP_HDR_SIZE			3
 #define TLP_LOOP			500
 #define RP_DEVFN			0
-- 
2.9.3