Skip to content

Commit 6c12e3e

Browse files
Vidya Sagarbjorn-helgaas
authored andcommitted
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/20220721142052.25971-12-vidyas@nvidia.com Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent 6646e99 commit 6c12e3e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/pci/controller/dwc/pcie-tegra194.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,12 @@ static irqreturn_t tegra_pcie_rp_irq_handler(int irq, void *arg)
370370
apply_bad_link_workaround(pp);
371371
}
372372
if (status_l1 & APPL_INTR_STATUS_L1_8_0_BW_MGT_INT_STS) {
373+
val_w = dw_pcie_readw_dbi(pci, pcie->pcie_cap_base +
374+
PCI_EXP_LNKSTA);
375+
val_w |= PCI_EXP_LNKSTA_LBMS;
376+
dw_pcie_writew_dbi(pci, pcie->pcie_cap_base +
377+
PCI_EXP_LNKSTA, val_w);
378+
373379
appl_writel(pcie,
374380
APPL_INTR_STATUS_L1_8_0_BW_MGT_INT_STS,
375381
APPL_INTR_STATUS_L1_8_0);

0 commit comments

Comments
 (0)