Hi Felipe, Thanks for your prompt reply! Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx> wrote: > Why is that waiting only 1ms? Maybe your platform takes longer, > sometimes, to complete xfer resource allocation? > > Try this: I tried the patch and still see the problem. I even extended it to 100ms just to see, but no luck. I think I left out some details that are probably important: > > To reproduce after a clean boot: > > > > Enable mass storage mode > > Disable mass storage mode > > Enable mass storage mode > > > > I don't need to plug any devices, just switch modes. The error message shows up on the second time to enable mass storage but not the first. If the message showed up on that second time, then it will show up every subsequent time for this boot. I've attached a new trace that includes switching out of and into mass storage mode again. On the third time, instead of timing out at 'Set Endpoint Transfer Resource' it times out at 'Start New Configuration'. This trace is much larger than the last one. I've also included a trace for the success case, switching the same amount of times (enable mass storage, disable, enable, disable, enable) just in case it can be helpful. > > I don't need to plug any devices, just switch modes. While this is true, there is some more behavior that may be helpful in debugging. After enabling mass storage mode for the first time and plugging into a host: If we get enumerated correctly then the 'failed to enable ep0out' error will not happen at all for this boot. If we don't get enumerated correctly (nothing shows in our dmesg, host doesn't recognize us) then the error will happen when we switch back and forth between modes next time. I can trace these scenarios if that is helpful. Initially I thought it would be unnecessary as the error shows up with or without plugging into a host. If there is anything else I can do to help debug please let me know. -Evan
Attachment:
dwc3-trace-20190514-success.txz
Description: application/xz
Attachment:
dwc3-trace-20190514-fail.txz
Description: application/xz