Hi Minas, On Tue, Feb 5, 2019 at 5:22 AM Minas Harutyunyan <minas.harutyun...@synopsys.com> wrote: > Could you please try patch submitted by me today:"[PATCH] usb: dwc2: > gadget: Consider VBUS discharge time in disconnect flow"
I should be able to try it tonight or tomorrow to see if it makes the driver recognize a cable disconnect. However, looking at the patch it is doing by default a 1 second busy wait in interrupt context. My understanding is that is a highly discouraged practice, on a single core machine it would freeze the entire machine for a full second. Can the disconnect handling be done in a tasklet? -- Frank