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
Quoted 14 lines · Thinh Nguyen
Hi Felipe,
Quoted 11 lines · Felipe Balbi
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 <[email protected]>--- drivers/usb/dwc3/gadget.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-)
Quoted 8 lines
Quoted 4 lines
drivers/usb/dwc3/gadget.c +0
-1--- a/drivers/usb/dwc3/gadget.cbreak;
This patch series has been running fine on my testing setup.
Tested-by Thinh Nguyen <[email protected]>
Thank you, I've merged this into my testing/next with your Tested-by.