Re: query on DWC3

2015-01-18 Thread sundeep subbaraya
Hi Felipe, On Thu, Jan 8, 2015 at 10:27 PM, Felipe Balbi wrote: > Hi, > > On Tue, Jan 06, 2015 at 12:39:55PM +0530, sundeep subbaraya wrote: >> >> On Sun, Dec 14, 2014 at 08:39:18AM +0530, sundeep subbaraya wrote: >> >> > Hi Paul, >> >> > >> >> > As per my understanding, for BULK OUT we do queue

Re: query on DWC3

2015-01-08 Thread Felipe Balbi
Hi, On Tue, Jan 06, 2015 at 12:39:55PM +0530, sundeep subbaraya wrote: > >> On Sun, Dec 14, 2014 at 08:39:18AM +0530, sundeep subbaraya wrote: > >> > Hi Paul, > >> > > >> > As per my understanding, for BULK OUT we do queue a request with 512 > >> > bytes length since we do not > >> > >> sometimes

Re: query on DWC3

2015-01-05 Thread sundeep subbaraya
Hi, On Mon, Dec 22, 2014 at 9:42 PM, Felipe Balbi wrote: > Hi again, > > On Mon, Dec 22, 2014 at 10:11:23AM -0600, Felipe Balbi wrote: >> (please don't top-post) Sure. >> >> On Sun, Dec 14, 2014 at 08:39:18AM +0530, sundeep subbaraya wrote: >> > Hi Paul, >> > >> > As per my understanding, for B

Re: query on DWC3

2014-12-22 Thread Felipe Balbi
Hi again, On Mon, Dec 22, 2014 at 10:11:23AM -0600, Felipe Balbi wrote: > (please don't top-post) > > On Sun, Dec 14, 2014 at 08:39:18AM +0530, sundeep subbaraya wrote: > > Hi Paul, > > > > As per my understanding, for BULK OUT we do queue a request with 512 > > bytes length since we do not > >

Re: query on DWC3

2014-12-22 Thread Felipe Balbi
Hi, (please don't top-post) On Sun, Dec 14, 2014 at 08:39:18AM +0530, sundeep subbaraya wrote: > Hi Paul, > > As per my understanding, for BULK OUT we do queue a request with 512 > bytes length since we do not sometimes we _do_ know the size. In case of Mass Storage, we _know_ that the first bu

Re: query on DWC3

2014-12-13 Thread sundeep subbaraya
Hi Paul, As per my understanding, for BULK OUT we do queue a request with 512 bytes length since we do not know the length of the transfer Host is going to send. For Control OUT we know the length in wLength of Setup packet, hence I assumed there is no difference in programming model of Control IN

RE: query on DWC3

2014-12-13 Thread Paul Zimmerman
> From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of sundeep subbaraya > Sent: Friday, December 12, 2014 9:13 PM > > Hi Felipe, > > In DWC3 driver, for three stage Control OUT transfer there is a check: > >else if (!IS_ALIGNED(req->request.length,

query on DWC3

2014-12-12 Thread sundeep subbaraya
Hi Felipe, In DWC3 driver, for three stage Control OUT transfer there is a check: else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && (dep->number == 0)) {. } I understand that we check for alignment of sizes and if not we prepare trb with maxpacket and ena