mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
USB: musb: correct DMA address for tx
Since a DMA transfer may need to be kicked off several times to complete, the DMA start must include the length that has already been transferred. Signed-off-by: Cliff Cai <[email protected]> Signed-off-by: Mike Frysinger <[email protected]> Cc: Felipe Balbi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
17be5c5f5e
commit
796a83fa03
1 changed files with 1 additions and 1 deletions
|
|
@ -319,7 +319,7 @@ static void txstate(struct musb *musb, struct musb_request *req)
|
|||
use_dma = use_dma && c->channel_program(
|
||||
musb_ep->dma, musb_ep->packet_sz,
|
||||
musb_ep->dma->desired_mode,
|
||||
request->dma, request_size);
|
||||
request->dma + request->actual, request_size);
|
||||
if (use_dma) {
|
||||
if (musb_ep->dma->desired_mode == 0) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue