Patchwork davinci: edma: clear events in edma_start()

login
register
mail settings
Submitter Brian Niebuhr
Date March 9, 2010, 10:48 p.m.
Message ID <1268174883-13933-1-git-send-email-bniebuhr@efjohnson.com>
Download mbox | patch
Permalink /patch/84611/
State Accepted
Headers show

Comments

Patch

diff --git a/arch/arm/mach-davinci/dma.c b/arch/arm/mach-davinci/dma.c
index 5cd48fa..52c16ff 100644
--- a/arch/arm/mach-davinci/dma.c
+++ b/arch/arm/mach-davinci/dma.c
@@ -1290,7 +1290,8 @@  int edma_start(unsigned channel)
 		/* EDMA channel with event association */
 		pr_debug("EDMA: ER%d %08x\n", j,
 			edma_shadow0_read_array(ctlr, SH_ER, j));
-		/* Clear any pending error */
+		/* Clear any pending event or error */
+		edma_write_array(ctlr, EDMA_ECR, j, mask);
 		edma_write_array(ctlr, EDMA_EMCR, j, mask);
 		/* Clear any SER */
 		edma_shadow0_write_array(ctlr, SH_SECR, j, mask);