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

2015-01-14 Thread Felipe Balbi
On Wed, Jan 14, 2015 at 08:20:19PM +0300, Sergei Shtylyov wrote: > Hello. > > On 01/14/2015 08:04 PM, Felipe Balbi wrote: > > >From: Amit Virdi > > >When scatter gather (SG) is used, multiple TRBs are prepared from one DWC3 > >request (dwc3_request). So while preparing TRBs, the 'last' flag sho

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

2015-01-14 Thread Sergei Shtylyov
Hello. On 01/14/2015 08:04 PM, Felipe Balbi wrote: From: Amit Virdi When scatter gather (SG) is used, multiple TRBs are prepared from one DWC3 request (dwc3_request). So while preparing TRBs, the 'last' flag should be set only when it is the last TRB being prepared from the last dwc3_reques

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

2015-01-14 Thread Felipe Balbi
From: Amit Virdi When scatter gather (SG) is used, multiple TRBs are prepared from one DWC3 request (dwc3_request). So while preparing TRBs, the 'last' flag should be set only when it is the last TRB being prepared from the last dwc3_request entry. The current implementation uses list_is_last to