Merge "usb: dwc3: gadget: Properly handle ClearFeature(halt)"

This commit is contained in:
qctecmdr 2021-04-12 23:41:41 -07:00 • committed by Gerrit - the friendly Code Review server
commit 0a298ddac0

View file

@ -1873,6 +1873,9 @@ int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value, int protocol)
dep->flags &= ~(DWC3_EP_STALL | DWC3_EP_WEDGE);
if (dep->gsi || dep->endless)
return 0;
dwc3_stop_active_transfer(dep, true, true);
list_for_each_entry_safe(req, tmp, &dep->started_list, list)