Skip to content

Commit a5c7682

Browse files
Thinh Nguyengregkh
authored andcommitted
usb: dwc3: gadget: Clear wait flag on dequeue
If an active transfer is dequeued, then the endpoint is freed to start a new transfer. Make sure to clear the endpoint's transfer wait flag for this case. Fixes: e0d1956 ("usb: dwc3: gadget: Wait for transfer completion") Cc: [email protected] Acked-by: Felipe Balbi <[email protected]> Signed-off-by: Thinh Nguyen <[email protected]> Link: https://lore.kernel.org/r/b81cd5b5281cfbfdadb002c4bcf5c9be7c017cfd.1609828485.git.Thinh.Nguyen@synopsys.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6c75c2b commit a5c7682

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/usb/dwc3/gadget.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,6 +1763,8 @@ static int dwc3_gadget_ep_dequeue(struct usb_ep *ep,
17631763
list_for_each_entry_safe(r, t, &dep->started_list, list)
17641764
dwc3_gadget_move_cancelled_request(r);
17651765

1766+
dep->flags &= ~DWC3_EP_WAIT_TRANSFER_COMPLETE;
1767+
17661768
goto out;
17671769
}
17681770
}

0 commit comments

Comments
 (0)