RE: [PATCH v4 4/8] usb: dwc3: implement stream transfer timeout

2018-09-15 Thread Anurag Kumar Vulisha
Hi Thinh, >> >> @@ -2403,6 +2424,13 @@ static void >dwc3_gadget_endpoint_transfer_in_progress(struct dwc3_ep *dep, >> stop = true; >> } >> >> +/* >> + * Delete the timer that was started in __dwc3_gadget_kick_transfer() >> + * for stream capable endpoints. >>

Re: [PATCH v4 4/8] usb: dwc3: implement stream transfer timeout

2018-09-13 Thread Thinh Nguyen
Hi Anurag, On 9/8/2018 8:03 AM, Anurag Kumar Vulisha wrote: > According to dwc3 databook when streams are used, it may be possible > for the host and device become out of sync, where device may wait for > host to issue prime transcation and host may wait for device to issue > erdy. To avoid such d

[PATCH v4 4/8] usb: dwc3: implement stream transfer timeout

2018-09-08 Thread Anurag Kumar Vulisha
According to dwc3 databook when streams are used, it may be possible for the host and device become out of sync, where device may wait for host to issue prime transcation and host may wait for device to issue erdy. To avoid such deadlock, timeout needs to be implemented. After timeout occurs, devic