Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 191b7766 authored by Swaminathan S's avatar Swaminathan S Committed by Greg Kroah-Hartman
Browse files

USB: musb cppi dma fix



Initializes the actual_len field to 0 before every DMA transaction.

Signed-off-by: default avatarSwaminathan S <swami.iyer@ti.com>
Acked-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 704a1485
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -995,6 +995,7 @@ static int cppi_channel_program(struct dma_channel *ch,
	cppi_ch->offset = 0;
	cppi_ch->offset = 0;
	cppi_ch->maxpacket = maxpacket;
	cppi_ch->maxpacket = maxpacket;
	cppi_ch->buf_len = len;
	cppi_ch->buf_len = len;
	cppi_ch->channel.actual_len = 0;


	/* TX channel? or RX? */
	/* TX channel? or RX? */
	if (cppi_ch->transmit)
	if (cppi_ch->transmit)