public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH OMAPZOOM] OMAP: DMA: Fix CCR programming for request line > 63
@ 2008-11-10 11:08 Gadiyar, Anand
  2008-11-11 13:33 ` Pandita, Vikram
  0 siblings, 1 reply; 7+ messages in thread
From: Gadiyar, Anand @ 2008-11-10 11:08 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org; +Cc: Pandita, Vikram, tony@atomide.com

From: Anand Gadiyar <gadiyar@ti.com>

Bug in existing code causes synchro control to be set +32 if request
line greater than 63 is used.

Reported by Wenbiao Wang

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
---
Patch generated against OMAPZOOM tree. Will apply against
linux-omap as well with an offset of 8 lines.

diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
index 562089e..b38a362 100644
--- a/arch/arm/plat-omap/dma.c
+++ b/arch/arm/plat-omap/dma.c
@@ -287,10 +287,7 @@ void omap_set_dma_transfer_params(int lch, int data_type, int elem_count,
 
 		val = dma_read(CCR(lch));
 		val &= ~(3 << 19);
-		if (dma_trigger > 63)
-			val |= 1 << 20;
-		if (dma_trigger > 31)
-			val |= 1 << 19;
+		val |= ((dma_trigger & ~(0x1f)) << 14);
 
 		val &= ~(0x1f);
 		val |= (dma_trigger & 0x1f);

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-01-08 14:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-10 11:08 [PATCH OMAPZOOM] OMAP: DMA: Fix CCR programming for request line > 63 Gadiyar, Anand
2008-11-11 13:33 ` Pandita, Vikram
2009-01-08 13:31   ` Tony Lindgren
2009-01-08 13:40     ` twebb
2009-01-08 13:52       ` Tony Lindgren
2009-01-08 14:08         ` twebb
2009-01-08 14:20           ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox