]> asedeno.scripts.mit.edu Git - linux.git/commit
dmaengine: qcom: bam_dma: clear BAM interrupt only if it is raised
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Mon, 11 Apr 2016 08:38:39 +0000 (11:38 +0300)
committerVinod Koul <vinod.koul@intel.com>
Tue, 19 Apr 2016 15:41:31 +0000 (21:11 +0530)
commitf89117c0f54c235c149d31174d1dd855e04765b8
treec5eb4b49b9fbb7651b593bd43a96f5d4678622bd
parentf139f97878039f9a49db6cb555d95f6b6e9ba0f8
dmaengine: qcom: bam_dma: clear BAM interrupt only if it is raised

Currently we write BAM_IRQ_CLR register with zero even when no
BAM_IRQ occured. This write has some bad side effects when the
BAM instance is for the crypto engine. In case of crypto engine
some of the BAM registers are xPU protected and they cannot be
controlled by the driver.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Reviewed-by: Andy Gross <andy.gross@linaro.org>
Tested-by: Pramod Gurav <gpramod@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/qcom/bam_dma.c