PCI: rockchip: fix subsys_irq_handler logic

Clear irq status first then handle the udma interrupt.

Change-Id: I3638524b7bd09ad21a431bfebd3ba0b5bfbe7b8e
Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
Simon Xue
2021-07-29 09:50:36 +08:00
committed by Tao Huang
parent 9697ead7cc
commit 912b48e870

View File

@@ -544,9 +544,9 @@ static irqreturn_t rockchip_pcie_subsys_irq_handler(int irq, void *arg)
}
if (reg & PCIE_CLIENT_INT_UDMA) {
rockchip_pcie_handle_dma_interrupt(rockchip);
rockchip_pcie_write(rockchip, sub_reg, PCIE_CLIENT_INT_STATUS);
rockchip_pcie_write(rockchip, reg, PCIE_CLIENT_INT_STATUS);
rockchip_pcie_handle_dma_interrupt(rockchip);
}
rockchip_pcie_write(rockchip, reg & PCIE_CLIENT_INT_LOCAL,