From 22f051f0b12793836891cfa845fa7f713db75af8 Mon Sep 17 00:00:00 2001 From: Anand Gadiyar Date: Mon, 1 Oct 2007 10:41:36 -0700 Subject: [PATCH] ARM: OMAP: DMA fix bug in omap_get_dma_dst_pos 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 Signed-off-by: Tony Lindgren --- arch/arm/plat-omap/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 3e026b20464..f01d6aeaf65 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c @@ -776,7 +776,7 @@ dma_addr_t omap_get_dma_dst_pos(int lch) (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; } -- 2.41.1