Commit f0f5bb83626d1e65bbaf1aca1fa268fa4ccd07f0
Committed by
Sekhar Nori
1 parent
9bd1b9e476
Exists in
ti-lsk-linux-4.1.y
and in
5 other branches
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> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/usb/dwc3/gadget.c
... | ... | @@ -2063,10 +2063,10 @@ |
2063 | 2063 | dwc->u1u2 = 0; |
2064 | 2064 | } |
2065 | 2065 | |
2066 | - if (is_xfer_complete && !usb_endpoint_xfer_isoc(dep->endpoint.desc)) { | |
2066 | + if (!usb_endpoint_xfer_isoc(dep->endpoint.desc)) { | |
2067 | 2067 | int ret; |
2068 | 2068 | |
2069 | - ret = __dwc3_gadget_kick_transfer(dep, 0, 1); | |
2069 | + ret = __dwc3_gadget_kick_transfer(dep, 0, is_xfer_complete); | |
2070 | 2070 | if (!ret || ret == -EBUSY) |
2071 | 2071 | return; |
2072 | 2072 | } |