Hi Felipe, Felipe Balbi wrote: > We must wait until End Transfer completes in order to clear > DWC3_EP_TRANSFER_STARTED, otherwise we may confuse the driver. > > This patch is in preparation to fix a rare race condition that happens > upon Disconnect Interrupt. > > Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx> > --- > drivers/usb/dwc3/gadget.c | 19 +++++-------------- > 1 file changed, 5 insertions(+), 14 deletions(-) > > diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c > index bed2ff42780b..a3903b8dc11e 100644 > --- a/drivers/usb/dwc3/gadget.c > break; This patch series has been running fine on my testing setup. Tested-by: Thinh Nguyen <thinhn@xxxxxxxxxxxx> Thanks, Thinh