dmaengine: qcom_hidma: check pending interrupts
authorSinan Kaya <okaya@codeaurora.org>
Tue, 14 Nov 2017 14:55:01 +0000 (09:55 -0500)
committerVinod Koul <vinod.koul@intel.com>
Tue, 12 Dec 2017 05:32:43 +0000 (11:02 +0530)
commit38680bc6b1e3592bc9e18adc1d6e259667df27ce
tree8d5990ce991bd8f4450702604cd88e5bf07f651f
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
dmaengine: qcom_hidma: check pending interrupts

Driver is missing the interrupts if two requests are queued up at the same
time as the interrupt handler is servicing a request that was just
delivered.

The ISR clears the interrupt at the end but it could be clearing the
interrupt for an outstanding event. Therefore, second interrupt never
arrives.

Clear the interrupt first and then check for completions.

Also, make sure that request start and interrupt clear do not overlap in
time by using a spinlock.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/qcom/hidma_ll.c