USB: musb cppi dma fix
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>
This commit is contained in:
parent
704a14854a
commit
191b776616
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue