mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
usb: dwc3: gadget: use Update Transfer from Xfer In Progress
Instead of limiting __dwc3_gadget_kick_transfer() to Xfer Complete, we can try to issue Update Transfer command from Xfer In Progress too. Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
6bb4fe12ea
commit
e6e709b7ab
1 changed files with 2 additions and 2 deletions
|
|
@ -1968,10 +1968,10 @@ static void dwc3_endpoint_transfer_complete(struct dwc3 *dwc,
|
|||
dwc->u1u2 = 0;
|
||||
}
|
||||
|
||||
if (is_xfer_complete && !usb_endpoint_xfer_isoc(dep->endpoint.desc)) {
|
||||
if (!usb_endpoint_xfer_isoc(dep->endpoint.desc)) {
|
||||
int ret;
|
||||
|
||||
ret = __dwc3_gadget_kick_transfer(dep, 0, 1);
|
||||
ret = __dwc3_gadget_kick_transfer(dep, 0, is_xfer_complete);
|
||||
if (!ret || ret == -EBUSY)
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue