PCI: tegra: Change PRSNT_SENSE IRQ log to debug [Linux 5.3]

This Linux kernel change "PCI: tegra: Change PRSNT_SENSE IRQ log to debug" is included in the Linux 5.3 release. This change is authored by Manikanta Maddireddy <mmaddireddy [at] nvidia.com> on Tue Jun 18 23:31:58 2019 +0530. The commit for this change in Linux stable tree is c894121 (patch).

PCI: tegra: Change PRSNT_SENSE IRQ log to debug

PRSNT_MAP bit field is programmed to update the slot present status.
PRSNT_SENSE IRQ is triggered when this bit field is programmed, which is
not an error. Add a new if condition to trap PRSNT_SENSE code and print
it with debug log level.

Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Thierry Reding <treding@nvidia.com>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/pci/controller/pci-tegra.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c
index 69cf0a0..adc50da 100644
--- a/drivers/pci/controller/pci-tegra.c
+++ b/drivers/pci/controller/pci-tegra.c
@@ -864,7 +864,7 @@ static irqreturn_t tegra_pcie_isr(int irq, void *arg)
     * do not pollute kernel log with master abort reports since they
     * happen a lot during enumeration
     */
-   if (code == AFI_INTR_MASTER_ABORT)
+   if (code == AFI_INTR_MASTER_ABORT || code == AFI_INTR_PE_PRSNT_SENSE)
        dev_dbg(dev, "%s, signature: %08x\n", err_msg[code], signature);
    else
        dev_err(dev, "%s, signature: %08x\n", err_msg[code], signature);

Leave a Reply

Your email address will not be published. Required fields are marked *