On Wed, 18 Jan 2006, Oliver Neukum wrote:

> What do you do if a second reset is requested while the first is in progress?
> Silently merge them?

It can't happen.  A driver has to hold the usb_device's semaphore before 
it can request a reset.

In fact, it would be a good idea to add a utility routine to the core: 
usb_lock_and_reset_device().  It could encapsulate the peculiar logic 
needed with usb_lock_device_for_reset(), in addition to sending out the 
pre- and post-notifications.

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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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