]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: qcom_hidma: check pending interrupts
authorSinan Kaya <okaya@codeaurora.org>
Tue, 14 Nov 2017 14:55:01 +0000 (09:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2018 08:10:00 +0000 (09:10 +0100)
commit5ae4953dc07230d4bc028731af724bce1a255690
tree76d94b21e4bacd641fd14d40385adf3feb6abba9
parent7aeb9a55a385ac169ac5c49277c45397bd1809d4
dmaengine: qcom_hidma: check pending interrupts

[ Upstream commit 38680bc6b1e3592bc9e18adc1d6e259667df27ce ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/qcom/hidma_ll.c