Patchwork [18/30] PCI: tegra: Change PRSNT_SENSE irq log to debug

login
register
mail settings
Submitter Manikanta Maddireddy
Date April 11, 2019, 5:03 p.m.
Message ID <20190411170355.6882-19-mmaddireddy@nvidia.com>
Download mbox | patch
Permalink /patch/770847/
State New
Headers show

Comments

Manikanta Maddireddy - April 11, 2019, 5:03 p.m.
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 switch case to trap RSNT_SENSE code and print it
with debug log level.

Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
---
 drivers/pci/controller/pci-tegra.c | 3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c
index cf2715065a53..dcfe97711cb5 100644
--- a/drivers/pci/controller/pci-tegra.c
+++ b/drivers/pci/controller/pci-tegra.c
@@ -855,6 +855,9 @@  static irqreturn_t tegra_pcie_isr(int irq, void *arg)
 	switch (code) {
 	case AFI_INTR_LEGACY:
 		return IRQ_NONE;
+	case AFI_INTR_PE_PRSNT_SENSE:
+		dev_dbg(dev, "%s, signature: %08x\n", err_msg[code], signature);
+		break;
 	/*
 	 * do not pollute kernel log with master abort reports since they
 	 * happen a lot during enumeration