linux-stable/drivers/dma/qcom
Sinan Kaya e09475d698 dmaengine: qcom_hidma: check pending interrupts
[ Upstream commit 38680bc6b1 ]

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>
2018-03-19 08:42:56 +01:00
..
bam_dma.c dmaengine: qcom: bam_dma: add command descriptor flag 2017-08-28 16:40:18 +05:30
hidma.c dmaengine: qcom_hidma: introduce memset support 2017-07-19 09:33:21 +05:30
hidma.h dmaengine: qcom_hidma: introduce memset support 2017-07-19 09:33:21 +05:30
hidma_dbg.c dmaengine: qcom_hidma: make pending_tre_count atomic 2016-11-03 18:55:44 +05:30
hidma_ll.c dmaengine: qcom_hidma: check pending interrupts 2018-03-19 08:42:56 +01:00
hidma_mgmt.c dmaengine: qcom_hidma: avoid freeing an uninitialized pointer 2017-08-21 21:51:00 +05:30
hidma_mgmt.h
hidma_mgmt_sys.c
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00