]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
usb: musb: fix bug in musbhsdma programming
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Tue, 13 Jan 2009 12:08:44 +0000 (14:08 +0200)
committerTony Lindgren <tony@atomide.com>
Tue, 13 Jan 2009 12:08:44 +0000 (14:08 +0200)
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>
drivers/usb/musb/musbhsdma.c

index 75b15ce38f381bbdec65d3db8456511c5cd02b2b..4394bd3682ce514d7caaf82147c4252a15db5a00 100644 (file)
@@ -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