From: Swaminathan S Date: Sun, 25 Jan 2009 01:57:37 +0000 (-0800) Subject: USB: musb cppi dma fix X-Git-Tag: v2.6.29-rc3~6^2~22 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=191b776616838f035c2fe7eecc882b5c1f134353;p=linux-2.6-omap-h63xx.git USB: musb cppi dma fix Initializes the actual_len field to 0 before every DMA transaction. Signed-off-by: Swaminathan S Acked-by: Felipe Balbi Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/musb/cppi_dma.c b/drivers/usb/musb/cppi_dma.c index d8d5345519c..569ef0fed0f 100644 --- a/drivers/usb/musb/cppi_dma.c +++ b/drivers/usb/musb/cppi_dma.c @@ -995,6 +995,7 @@ static int cppi_channel_program(struct dma_channel *ch, cppi_ch->offset = 0; cppi_ch->maxpacket = maxpacket; cppi_ch->buf_len = len; + cppi_ch->channel.actual_len = 0; /* TX channel? or RX? */ if (cppi_ch->transmit)