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 when HyperSpeed
> USB (or whatever is next) comes along in a few years. Don't know how
> difficult that would be to implement, though. Would it just be a matter of
> comparing fsg_lun.blksize to fsg_common. bulk_out_maxpacket?

Yep.  Of course, this would require the lun to be passed as an 
additional argument to set_bulk_out_req_length().

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to