From: Ajay Kumar Gupta Date: Tue, 13 Jan 2009 12:08:44 +0000 (+0200) Subject: usb: musb: fix bug in musbhsdma programming X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=15f75b6226c2d3b82062bb721e7cb9a1d6f35efd;p=linux-2.6-omap-h63xx.git 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 Acked-by: Felipe Balbi Signed-off-by: Tony Lindgren --- diff --git a/drivers/usb/musb/musbhsdma.c b/drivers/usb/musb/musbhsdma.c index 75b15ce38f3..4394bd3682c 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