public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] usb: musb: fix bug in musbhsdma programming
@ 2009-01-09  4:39 Ajay Kumar Gupta
  2009-01-09  5:16 ` Gupta, Ajay Kumar
  2009-01-12 22:26 ` Felipe Balbi
  0 siblings, 2 replies; 5+ messages in thread
From: Ajay Kumar Gupta @ 2009-01-09  4:39 UTC (permalink / raw)
  To: linux-omap; +Cc: david-b, felipe.balbi, Ajay Kumar Gupta

Mode bit should be set based on function parameter "mode" of
configure_channel() function.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
---
Original version of this patch is at,
http://marc.info/?l=linux-usb&m=123141793611158&w=2

 drivers/usb/musb/musbhsdma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/musb/musbhsdma.c b/drivers/usb/musb/musbhsdma.c
index 75b15ce..8e44355 100644
--- a/drivers/usb/musb/musbhsdma.c
+++ b/drivers/usb/musb/musbhsdma.c
@@ -136,7 +136,7 @@ static void configure_channel(struct dma_channel *channel,
 		csr |= MUSB_HSDMA_BURSTMODE_INCR4;
 
 	csr |= (musb_channel->epnum << MUSB_HSDMA_ENDPOINT_SHIFT)
-		| MUSB_HSDMA_MODE1
+		| mode ? MUSB_HSDMA_MODE1 : 0
 		| MUSB_HSDMA_ENABLE
 		| MUSB_HSDMA_IRQENABLE
 		| (musb_channel->transmit
-- 
1.5.6


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

end of thread, other threads:[~2009-01-13 12:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-09  4:39 [PATCH v2] usb: musb: fix bug in musbhsdma programming Ajay Kumar Gupta
2009-01-09  5:16 ` Gupta, Ajay Kumar
2009-01-12 22:26 ` Felipe Balbi
2009-01-13  4:31   ` Gupta, Ajay Kumar
2009-01-13 12:09     ` Tony Lindgren

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