diff options
author | Peter Chen <peter.chen@nxp.com> | 2020-09-10 17:11:27 +0800 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2020-10-02 09:57:45 +0300 |
commit | 249f0a25e8becebe351e0f70e00fc84f47d6584d (patch) | |
tree | 10bd09c0ba5c3c0b10e169caa295ce34fde94202 /drivers/misc | |
parent | 87e1dcd48970ea1cf2d2ce368eb70a46c2eff3ee (diff) | |
download | linux-249f0a25e8becebe351e0f70e00fc84f47d6584d.tar.bz2 |
usb: cdns3: gadget: handle sg list use case at completion correctly
- Judge each TRB has been handled at cdns3_trb_handled, since
the DMA pointer may be at the middle of the TD, we can't consider
this TD has finished at that time.
- Calculate req->actual according to finished TRBs.
- Handle short transfer for sg list use case correctly. When the
short transfer occurs, we check OUT_SMM at TRB to see if it is
the last TRB.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions