usb: dwc3: gadget: clear DWC3_EP_TRANSFER_STARTED on cmd complete
PATCH 1/4 usb: dwc3: gadget: clear DWC3_EP_TRANSFER_STARTED on cmd complete
Hi,
Thinh Nguyen <[email protected]> writes:
<snip>
Quoted 10 lines
Quoted 10 lines
Note that start transfer came before End Transfer completion.
/me goes look furter
I can see what's going on. The problem here is that we issue a Start Transfer to all bulk endpoints when they are enabled. Upon
ep_disable, we issue End Transfer. Because you're switching interfaces all the time, then you exposed the race betweenep_disablefollowed byep_enableand End Transfer completion.
Quoted 6 lines
Quoted 4 lines
Would it be enough to just skip the completion interrupt from
ep_disable?Your patch resolves this issue. Can you create a formal patch for this?
will do, thanks