Skip to content

Commit

Permalink
USB: musb cppi dma fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Swaminathan S authored and Greg Kroah-Hartman committed Jan 28, 2009
1 parent 704a148 commit 191b776
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/musb/cppi_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 191b776

Please sign in to comment.