mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "usb: dwc3: gadget: Add delay for EPCMDCMPLT"
This commit is contained in:
commit
ca58b822ce
1 changed files with 7 additions and 0 deletions
|
|
@ -816,6 +816,13 @@ static void dwc3_remove_requests(struct dwc3 *dwc, struct dwc3_ep *dep)
|
|||
dwc->eps[1]->trb_enqueue = 0;
|
||||
}
|
||||
|
||||
if (dep->flags & DWC3_EP_END_TRANSFER_PENDING)
|
||||
udelay(2000);
|
||||
|
||||
if (dep->flags & DWC3_EP_END_TRANSFER_PENDING)
|
||||
dbg_log_string("ep end_xfer cmd completion timeout for %d",
|
||||
dep->number);
|
||||
|
||||
/* - giveback all requests to gadget driver */
|
||||
while (!list_empty(&dep->started_list)) {
|
||||
req = next_request(&dep->started_list);
|
||||
|
|
|
|||
Loading…
Reference in a new issue