On Mon, 28 Nov 2005, David Brownell wrote:

> On Sunday 27 November 2005 9:15 am, Alan Stern wrote:
> > 
> > So far as I know, the USB API doesn't allow for size limits on URB 
> > transfer lengths. There's no mechanism to report back that an URB is too  
> > large,
> 
> Sure there is ... return "-EMSGSIZE" from usb_submit_urb(); or perhaps
> some other errno value.  The API clearly allows for that fault code.  :)

>From Documentation/usb/error-codes.txt:

-EMSGSIZE       (a) endpoint maxpacket size is zero; it is not usable
                    in the current interface altsetting.
                (b) ISO packet is biger than endpoint maxpacket
                (c) requested data transfer size is invalid (negative)

There's nothing about an URB's transfer_length being too big.

> >  and no driver tries to break URBs up into smaller pieces.
> 
> True, but that's a different issue.  Few drivers bother looking at the
> fault codes reported by usbcore or the HCDs ... that'd basically be a
> bug in the driver.

Even the ones that do check the fault codes don't try to subdivide URBs.

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to