Skip to contentSkip to conversation

usb: dwc3: gadget: clear DWC3_EP_TRANSFER_STARTED on cmd complete

PATCH New Felipe Balbi 1 participant 1 message Feb 13, 2019 USB

lore
Share & tools
lore
#0 lore raw

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 between ep_disable followed by ep_enable and 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