Re: [PATCH 1/4] usb: dwc3: gadget: Fix TRB preparation during SG

2014-12-28 Thread Amit Virdi
On Sat, Dec 27, 2014 at 11:14 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Sat, Dec 27, 2014 at 12:39:23PM +0530, Amit Virdi wrote: On Mon, Dec 22, 2014 at 9:34 PM, Felipe Balbi ba...@ti.com wrote: On Fri, Dec 19, 2014 at 12:40:15PM +0530, Amit Virdi wrote: When scatter gather is used,

Re: [PATCH 1/4] usb: dwc3: gadget: Fix TRB preparation during SG

2014-12-27 Thread Felipe Balbi
Hi, On Sat, Dec 27, 2014 at 12:39:23PM +0530, Amit Virdi wrote: On Mon, Dec 22, 2014 at 9:34 PM, Felipe Balbi ba...@ti.com wrote: On Fri, Dec 19, 2014 at 12:40:15PM +0530, Amit Virdi wrote: When scatter gather is used, multiple TRBs are prepared from one DWC3 request. Hence, we must set

Re: [PATCH 1/4] usb: dwc3: gadget: Fix TRB preparation during SG

2014-12-26 Thread Amit Virdi
On Mon, Dec 22, 2014 at 9:34 PM, Felipe Balbi ba...@ti.com wrote: On Fri, Dec 19, 2014 at 12:40:15PM +0530, Amit Virdi wrote: When scatter gather is used, multiple TRBs are prepared from one DWC3 request. Hence, we must set the 'last' flag when the SG is last as well as the TRB is last. The

Re: [PATCH 1/4] usb: dwc3: gadget: Fix TRB preparation during SG

2014-12-22 Thread Felipe Balbi
On Fri, Dec 19, 2014 at 12:40:15PM +0530, Amit Virdi wrote: When scatter gather is used, multiple TRBs are prepared from one DWC3 request. Hence, we must set the 'last' flag when the SG is last as well as the TRB is last. The current implementation uses list_is_last to check if the

[PATCH 1/4] usb: dwc3: gadget: Fix TRB preparation during SG

2014-12-18 Thread Amit Virdi
When scatter gather is used, multiple TRBs are prepared from one DWC3 request. Hence, we must set the 'last' flag when the SG is last as well as the TRB is last. The current implementation uses list_is_last to check if the dwc3_request is the last request in the request_list. This doesn't work