On Thu, 23 Mar 2006, David Brownell wrote: > > > > That's right. usb_ep_alloc_buffer doesn't really use the endpoint > > > > argument, .... > > > > > > 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? > > It deserves a comment that the current code is nonportable.
Okay, I'll add one. My memory is slowly returning... I believe that our original discussion was about whether or not it should be legal to allocate a buffer or a request for an endpoint before the endpoint was enabled. That's what file_storage.c does, but one of the old controller drivers couldn't handle it. 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