ARM: tegra: pcie: Fix interrupt message display
Jay Agarwal [Tue, 14 May 2013 06:11:28 +0000 (11:11 +0530)]
Corrected the interrupt messages array to display
right log for right interrupt code.

Change-Id: I89f862e3d2f0779c26332b7e2b918892b4432f65
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/228256
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Thota <kthota@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

arch/arm/mach-tegra/pcie.c

index f5b4796..7313f21 100644 (file)
@@ -817,6 +817,7 @@ static void handle_sb_intr(void)
        /* Handle sideband intr differently for T124 */
        u32 mesg;
 
+       PR_FUNC_LINE;
        mesg = afi_readl(AFI_MSG_0);
 
        if (mesg & AFI_MSG_INTX_MASK)
@@ -843,7 +844,7 @@ static irqreturn_t tegra_pcie_isr(int irq, void *arg)
                "Target abort",
                "Master abort",
                "Invalid write",
-               ""
+               "",
                "Response decoding error",
                "AXI response decoding error",
                "Transcation timeout",
@@ -870,7 +871,7 @@ static irqreturn_t tegra_pcie_isr(int irq, void *arg)
        if (code == AFI_INTR_MASTER_ABORT)
                pr_debug("PCIE: %s, signature: %08x\n",
                                err_msg[code], signature);
-       else
+       else if (code != AFI_INTR_LEGACY)
                pr_err("PCIE: %s, signature: %08x\n", err_msg[code], signature);
 
        return IRQ_HANDLED;