Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1362441 > unrolled thread

[PATCH 1/2] dmaengine: qcom_bam_dma: Clear IRQ only if its set

Started byPramod Gurav <gpramod@codeaurora.org>
First post2016-03-22 11:00 +0100
Last post2016-03-22 11:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/2] dmaengine: qcom_bam_dma: Clear IRQ only if its set Pramod Gurav <gpramod@codeaurora.org> - 2016-03-22 11:00 +0100

#1362441 — [PATCH 1/2] dmaengine: qcom_bam_dma: Clear IRQ only if its set

FromPramod Gurav <gpramod@codeaurora.org>
Date2016-03-22 11:00 +0100
Subject[PATCH 1/2] dmaengine: qcom_bam_dma: Clear IRQ only if its set
Message-ID<rfrgu-2yM-13@gated-at.bofh.it>
Clear the BAM IRQ bit only if there is a BAM interrupt.

Signed-off-by: Pramod Gurav <gpramod@codeaurora.org>
---
 drivers/dma/qcom/bam_dma.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/dma/qcom/bam_dma.c b/drivers/dma/qcom/bam_dma.c
index d5e0a9c..0880345 100644
--- a/drivers/dma/qcom/bam_dma.c
+++ b/drivers/dma/qcom/bam_dma.c
@@ -807,7 +807,8 @@ static irqreturn_t bam_dma_irq(int irq, void *data)
 	/* don't allow reorder of the various accesses to the BAM registers */
 	mb();
 
-	writel_relaxed(clr_mask, bam_addr(bdev, 0, BAM_IRQ_CLR));
+	if (srcs & BAM_IRQ)
+		writel_relaxed(clr_mask, bam_addr(bdev, 0, BAM_IRQ_CLR));
 
 	return IRQ_HANDLED;
 }
-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web