mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Merge "usb: dwc3: gadget: Properly handle ClearFeature(halt)"
This commit is contained in:
commit
0a298ddac0
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue