diff options
| author | Vidya Sagar <[email protected]> | 2022-07-21 14:20:47 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2022-07-22 22:14:56 +0000 |
| commit | 6c12e3e139ab7511c9e9d6bc2b363aa4e59fc8ce (patch) | |
| tree | 1a7bd8b152f99d74e7f441ee26d5da0b7d57e47a /drivers/pci/controller/dwc | |
| parent | PCI: tegra194: Fix Root Port interrupt handling (diff) | |
| download | kernel-6c12e3e139ab7511c9e9d6bc2b363aa4e59fc8ce.tar.gz kernel-6c12e3e139ab7511c9e9d6bc2b363aa4e59fc8ce.zip | |
PCI: tegra194: Clear bandwidth management status
In the event of a bandwidth management interrupt, clear the bandwidth
management status in the configuration space also along with clearing
corresponding status in the application logic register to avoid slew
of interrupts.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vidya Sagar <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
| -rw-r--r-- | drivers/pci/controller/dwc/pcie-tegra194.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c index 23377425952a..5f1798d37572 100644 --- a/drivers/pci/controller/dwc/pcie-tegra194.c +++ b/drivers/pci/controller/dwc/pcie-tegra194.c @@ -370,6 +370,12 @@ static irqreturn_t tegra_pcie_rp_irq_handler(int irq, void *arg) apply_bad_link_workaround(pp); } if (status_l1 & APPL_INTR_STATUS_L1_8_0_BW_MGT_INT_STS) { + val_w = dw_pcie_readw_dbi(pci, pcie->pcie_cap_base + + PCI_EXP_LNKSTA); + val_w |= PCI_EXP_LNKSTA_LBMS; + dw_pcie_writew_dbi(pci, pcie->pcie_cap_base + + PCI_EXP_LNKSTA, val_w); + appl_writel(pcie, APPL_INTR_STATUS_L1_8_0_BW_MGT_INT_STS, APPL_INTR_STATUS_L1_8_0); |
