On Monday 28 November 2005 11:37 am, Alan Stern wrote: > 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.
Call it a doc bug; the "negative" comment is incomplete. I know that OHCI has returned EMSGSIZE for the "too big" case for several years now for one control transfer case. - Dave ------------------------------------------------------- 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