On Thu, 23 Mar 2006, David Brownell wrote:

> On Tuesday 21 March 2006 9:31 am, Alan Stern wrote:
> 
> > That's right.  usb_ep_alloc_buffer doesn't really use the endpoint 
> > argument, so it doesn't matter whether we specify the bulk-in or the 
> > bulk-out endpoint.  Basically, any buffer can be used with any endpoint 
> > (except possibly endpoint 0).
> 
> That's not true.  Controller drivers are certainly allowed to use
> that argument ... it's provided so that they _can_ use it.  Some do.

I thought that might provoke you into commenting... :-)

ISTR we discussed this very issue back when g_file_storage was being
developed.  I can't recall the actual issue or what we decided.  It may
had something to do with a desire to avoid allocating separate buffers for
bulk-in and bulk-out.

Do you think the code in file_storage.c needs to be changed?

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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