msm: pcie: mask the aggregated interrupt status register

Aggregated interrupts that are configured to be masked should
not be reported in the interrupt handler. Thus, mask the status
value being read in the interrupt handler to filter them out.

Change-Id: I6b563955309795ac2b68c2527cbd763f9300a029
Signed-off-by: Tony Truong <truong@codeaurora.org>
This commit is contained in:
Tony Truong 2016-01-15 14:13:24 -08:00 committed by David Keitel
parent 99e08a1be6
commit 7daad880e2

View file

@ -4963,7 +4963,9 @@ static irqreturn_t handle_global_irq(int irq, void *data)
spin_lock_irqsave(&dev->global_irq_lock, irqsave_flags);
status = readl_relaxed(dev->parf + PCIE20_PARF_INT_ALL_STATUS);
status = readl_relaxed(dev->parf + PCIE20_PARF_INT_ALL_STATUS) &
readl_relaxed(dev->parf + PCIE20_PARF_INT_ALL_MASK);
msm_pcie_write_mask(dev->parf + PCIE20_PARF_INT_ALL_CLEAR, 0, status);
for (i = 0; i <= MSM_PCIE_INT_EVT_MAX; i++) {