Oliver Neukum wrote:
Am Sonntag, 16. Mai 2004 17:48 schrieb Alan Stern:

Greg & everyone:

While implementing the suggestion to replace synchronous usb_unlink_urb() with usb_kill_urb(), a question arose concerning the value stored in
urb->status. Right now the status is -ECONNRESET for asynch and -ENOENT
for synch unlinks. Should I preserve this behavior? Or is now a good

I brought this question up a year or so back, to no agreement beyond "someone needs to audit all the drivers". I'd certainly change that when 2.7 starts.


time to do away with -ENOENT, on the grounds that a driver shouldn't care


Then also hunt down ESHUTDOWN.

I'm not sure what you mean by that -- except that any spot a driver is checking for ECONNRESET or ENOENT probably also needs to consider ESHUTDOWN. ESHUTDOWN is initiated by usbcore, and shouldn't be confused with anything initiated by the device driver.

- Dave




------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to