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 1, 2019 USB

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index bed2ff42780b..a3903b8dc11e 100644
--- a/drivers/usb/dwc3/gadget.c

break;

This patch series has been running fine on my testing setup.

Thank you, I've merged this into my testing/next with your Tested-by.