[PATCH] ARM: OMAP: DMA fix bug in omap_get_dma_dst_pos

Gadiyar, Anand
2007-09-19T05:52:35Z

From: Anand Gadiyar <gadiyar@ti.com>

omap_get_dma_dst_pos() should return the current destination address.
The CDSA register contains the destination start address.
CDAC register should be used instead.

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
---

linux-omap/arch/arm/plat-omap/dma.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
===================================================================
--- linux-omap.orig/arch/arm/plat-omap/dma.c 2007-09-18
16:17:21.000000000 +0530
+++ linux-omap/arch/arm/plat-omap/dma.c 2007-09-18 16:21:59.000000000
+0530
@@ -776,7 +776,7 @@
(OMAP1_DMA_CDSA_U_REG(lch) <<
16));

if (cpu_is_omap24xx())
- offset = OMAP2_DMA_CDSA_REG(lch);
+ offset = OMAP2_DMA_CDAC_REG(lch);

return offset;
}