mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
USB: musb cppi dma fix
Initializes the actual_len field to 0 before every DMA transaction. Signed-off-by: Swaminathan S <[email protected]> Acked-by: Felipe Balbi <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
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