summaryrefslogtreecommitdiff
path: root/packages/linux/linux-omap-2.6.28
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-01-14 15:37:06 +0100
committerKoen Kooi <koen@openembedded.org>2009-01-14 15:37:06 +0100
commit58b921d5670af86a71cd50ada7520a2a7a9579ce (patch)
treea37fc117a3fe9d11fc6344edf5cb5baf613352a5 /packages/linux/linux-omap-2.6.28
parentee252dee2abeb428795c680078152e4de2d955e7 (diff)
linux-omap 2.6.28: add patch for musb dma programming
Diffstat (limited to 'packages/linux/linux-omap-2.6.28')
-rw-r--r--packages/linux/linux-omap-2.6.28/musb-hsdma.diff28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/linux/linux-omap-2.6.28/musb-hsdma.diff b/packages/linux/linux-omap-2.6.28/musb-hsdma.diff
new file mode 100644
index 0000000000..05de732ed0
--- /dev/null
+++ b/packages/linux/linux-omap-2.6.28/musb-hsdma.diff
@@ -0,0 +1,28 @@
+From: Ajay Kumar Gupta <ajay.gupta@ti.com>
+Date: Tue, 13 Jan 2009 12:08:44 +0000 (+0200)
+Subject: usb: musb: fix bug in musbhsdma programming
+X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftmlind%2Flinux-omap-2.6.git;a=commitdiff_plain;h=15f75b6226c2d3b82062bb721e7cb9a1d6f35efd
+
+usb: musb: fix bug in musbhsdma programming
+
+Mode bit should be set based on function parameter "mode" of
+configure_channel() function.
+
+Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
+Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
+Signed-off-by: Tony Lindgren <tony@atomide.com>
+---
+
+diff --git a/drivers/usb/musb/musbhsdma.c b/drivers/usb/musb/musbhsdma.c
+index 75b15ce..4394bd3 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