[PATCH v2] ARM: OMAP: SDMA: Fix omap_stop_dma() API for channel linking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OMAP sDMA driver API omap_stop_dma() doesn't really stop the dma when used
in linking scenario. This patch fixes the same.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@xxxxxx>
Signed-off-by: Venkatraman S <svenkatr@xxxxxx>
Reviewed-By: Tony Lindgren <tony@xxxxxxxxxxx>
CC: Hari n <hari.zoom@xxxxxxxxx>
CC: Jarkko Nikula <jhnikula@xxxxxxxxx>
---
 arch/arm/plat-omap/dma.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
index fd3154a..1c933b4 100644
--- a/arch/arm/plat-omap/dma.c
+++ b/arch/arm/plat-omap/dma.c
@@ -987,6 +987,11 @@ void omap_stop_dma(int lch)
 			/* Mark the current channel */
 			dma_chan_link_map[cur_lch] = 1;
 
+			/* Disable the DMA channel */
+			l = dma_read(CCR(lch));
+			l &= ~OMAP_DMA_CCR_EN;
+			dma_write(l, CCR(lch));
+
 			disable_lnk(cur_lch);
 
 			next_lch = dma_chan[cur_lch].next_lch;
-- 
1.5.4.7

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux