]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
USB: musb cppi dma fix
authorSwaminathan S <swami.iyer@ti.com>
Sun, 25 Jan 2009 01:57:37 +0000 (17:57 -0800)
committerGreg Kroah-Hartman <gregkh@kvm.kroah.org>
Wed, 28 Jan 2009 00:15:35 +0000 (16:15 -0800)
Initializes the actual_len field to 0 before every DMA transaction.

Signed-off-by: Swaminathan S <swami.iyer@ti.com>
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/cppi_dma.c

index d8d5345519c997f24cc8505fcb93b9d55e9bc30d..569ef0fed0f6fa4dff994acbd132a465aae454c6 100644 (file)
@@ -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)