Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-27 Thread Felipe Balbi
On Thu, Jul 26, 2012 at 11:17:38AM -0400, Alan Stern wrote: > On Thu, 26 Jul 2012, Felipe Balbi wrote: > > > Hi, > > > > On Wed, Jul 25, 2012 at 02:53:00PM +0200, Rajaram REGUPATHY wrote: > > > The short_not_ok field is used by class drivers to indicate udc whether > > > short packet is expected

RE: usb : mass storage : short_not_ok for non usb3 udc

2012-07-26 Thread Alan Stern
On Thu, 26 Jul 2012, Paul Zimmerman wrote: > > Hmmm. I suppose an impartial approach would be to set short_not_ok > > only when the blocksize >= the maxpacket size. That should always work > > as a general rule, regardless of speed. > > Yes. And that might save us from having to rehash all this

RE: usb : mass storage : short_not_ok for non usb3 udc

2012-07-26 Thread Paul Zimmerman
> From: Alan Stern [mailto:st...@rowland.harvard.edu] > Sent: Thursday, July 26, 2012 12:32 PM > > On Thu, 26 Jul 2012, Paul Zimmerman wrote: > > > > That's very clear. So Rajaram, when you redo the patch you can simply > > > leave out the checks for SuperSpeed. Set or clear the short_not_ok >

RE: usb : mass storage : short_not_ok for non usb3 udc

2012-07-26 Thread Alan Stern
On Thu, 26 Jul 2012, Paul Zimmerman wrote: > > That's very clear. So Rajaram, when you redo the patch you can simply > > leave out the checks for SuperSpeed. Set or clear the short_not_ok > > flag depending only on the size of the bulk transfer, regardless of the > > speed. > > I have a bit of

RE: usb : mass storage : short_not_ok for non usb3 udc

2012-07-26 Thread Paul Zimmerman
> From: Alan Stern [mailto:st...@rowland.harvard.edu] > Sent: Thursday, July 26, 2012 8:16 AM > > On Thu, 26 Jul 2012, Felipe Balbi wrote: > > > > > > > > > Maybe while bringing it back you can remove the checks for > > > > > > > > SuperSpeed. > > > > > > > > Is there any reason to keep them? >

Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-26 Thread Alan Stern
On Thu, 26 Jul 2012, Felipe Balbi wrote: > Hi, > > On Wed, Jul 25, 2012 at 02:53:00PM +0200, Rajaram REGUPATHY wrote: > > The short_not_ok field is used by class drivers to indicate udc whether > > short packet is expected during a particular transfer. > > In case of mass storage, during command

Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-26 Thread Alan Stern
On Thu, 26 Jul 2012, Felipe Balbi wrote: > > > > > > > Maybe while bringing it back you can remove the checks for > > > > > > > SuperSpeed. > > > > > > > Is there any reason to keep them? > > > Okay, that's fine. But it doesn't answer my earlier question: Is there > > > really any need for the

Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-26 Thread Felipe Balbi
Hi, On Wed, Jul 25, 2012 at 02:53:00PM +0200, Rajaram REGUPATHY wrote: > The short_not_ok field is used by class drivers to indicate udc whether short > packet is expected during a particular transfer. > In case of mass storage, during command and status phase this field is set as > false and se

Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-26 Thread Felipe Balbi
to:st...@rowland.harvard.edu] > > > > Sent: Wednesday, July 25, 2012 12:48 PM > > > > To: Paul Zimmerman > > > > Cc: Rajaram R; Michal Nazarewicz; linux-usb@vger.kernel.org > > > > Subject: RE: usb : mass storage : short_not_ok for non usb3 udc

Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Rajaram R
chal Nazarewicz; linux-usb@vger.kernel.org >> > Subject: RE: usb : mass storage : short_not_ok for non usb3 udc >> > >> > On Wed, 25 Jul 2012, Paul Zimmerman wrote: >> > >> > > > > > I don't understand this either. What's wrong with s

RE: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Paul Zimmerman
gt; To: Paul Zimmerman > > > Cc: Rajaram R; Michal Nazarewicz; linux-usb@vger.kernel.org > > > Subject: RE: usb : mass storage : short_not_ok for non usb3 udc > > > > > > On Wed, 25 Jul 2012, Paul Zimmerman wrote: > > > > > > > > > > I

RE: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Alan Stern
On Wed, 25 Jul 2012, Paul Zimmerman wrote: > > From: Alan Stern [mailto:st...@rowland.harvard.edu] > > Sent: Wednesday, July 25, 2012 12:48 PM > > To: Paul Zimmerman > > Cc: Rajaram R; Michal Nazarewicz; linux-usb@vger.kernel.org > > Subject: RE: usb : mass storage :

RE: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Paul Zimmerman
> From: Alan Stern [mailto:st...@rowland.harvard.edu] > Sent: Wednesday, July 25, 2012 12:48 PM > To: Paul Zimmerman > Cc: Rajaram R; Michal Nazarewicz; linux-usb@vger.kernel.org > Subject: RE: usb : mass storage : short_not_ok for non usb3 udc > > On Wed, 25 Jul 2012,

RE: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Alan Stern
On Wed, 25 Jul 2012, Paul Zimmerman wrote: > > > > I don't understand this either. What's wrong with setting > > > > short_not_ok while at SuperSpeed? It shouldn't force the use of a > > bounce buffer. > > > > > > > > > > I have just brought back some code removed by patch "usb: fix mass > > > s

Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Alan Stern
On Wed, 25 Jul 2012, Rajaram R wrote: > On Wed, Jul 25, 2012 at 10:51 PM, Alan Stern > wrote: > > On Wed, 25 Jul 2012, Rajaram R wrote: > > > >> >> > There's one thing I don't get. The message talks about musb but the > >> >> > code > >> >> > checks for non Super Speed devices. So maybe the c

RE: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Paul Zimmerman
> From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- > ow...@vger.kernel.org] On Behalf Of Alan Stern > > On Wed, 25 Jul 2012, Rajaram R wrote: > > > >> > There's one thing I don't get. The message talks about musb but > > >> > the code checks for non Super Speed devices. So maybe the cod

Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Rajaram R
On Wed, Jul 25, 2012 at 10:51 PM, Alan Stern wrote: > On Wed, 25 Jul 2012, Rajaram R wrote: > >> >> > There's one thing I don't get. The message talks about musb but the >> >> > code >> >> > checks for non Super Speed devices. So maybe the code is correct, maybe >> >> > it's not, but the messag

Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Alan Stern
On Wed, 25 Jul 2012, Rajaram R wrote: > >> > There's one thing I don't get. The message talks about musb but the code > >> > checks for non Super Speed devices. So maybe the code is correct, maybe > >> > it's not, but the message does not really explain it (at least to me). > >> > > >> Please le

Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Rajaram R
Hi Alan On Wed, Jul 25, 2012 at 9:07 PM, Alan Stern wrote: > On Wed, 25 Jul 2012, Rajaram R wrote: > >> Hi >> >> On Wed, Jul 25, 2012 at 6:33 PM, Michal Nazarewicz wrote: >> > On Wed, 25 Jul 2012 14:53:00 +0200, Rajaram REGUPATHY >> > wrote: >> >> >> >> The short_not_ok field is used by class d

Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Alan Stern
On Wed, 25 Jul 2012, Rajaram R wrote: > Hi > > On Wed, Jul 25, 2012 at 6:33 PM, Michal Nazarewicz wrote: > > On Wed, 25 Jul 2012 14:53:00 +0200, Rajaram REGUPATHY > > wrote: > >> > >> The short_not_ok field is used by class drivers to indicate udc whether > >> short packet is expected during a

Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Alan Stern
On Wed, 25 Jul 2012, Rajaram REGUPATHY wrote: > The short_not_ok field is used by class drivers to indicate udc whether short > packet is expected during a particular transfer. > In case of mass storage, during command and status phase this field is set as > false and set to true during data pha

Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Rajaram R
Hi On Wed, Jul 25, 2012 at 6:33 PM, Michal Nazarewicz wrote: > On Wed, 25 Jul 2012 14:53:00 +0200, Rajaram REGUPATHY > wrote: >> >> The short_not_ok field is used by class drivers to indicate udc whether >> short packet is expected during a particular transfer. >> In case of mass storage, during

Re: usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Michal Nazarewicz
On Wed, 25 Jul 2012 14:53:00 +0200, Rajaram REGUPATHY wrote: The short_not_ok field is used by class drivers to indicate udc whether short packet is expected during a particular transfer. In case of mass storage, during command and status phase this field is set as false and set to true durin

usb : mass storage : short_not_ok for non usb3 udc

2012-07-25 Thread Rajaram REGUPATHY
The short_not_ok field is used by class drivers to indicate udc whether short packet is expected during a particular transfer. In case of mass storage, during command and status phase this field is set as false and set to true during data phase. musb driver uses this field to decide whether to pr