Prompted by the current discussion on LKML, I am considering adding proper suspend/resume support to the USB drivers I maintain. I have read Documentation/power/devices.txt but much of it just refers me to bus specific mechanisms.
From what I found on linux-usb-devel so far, if a USB driver does not provide .suspend and .resume methods the suspend will proceed anyway, and any calls to usb_submit_urb() while the device is suspended will just return -EHOSTUNREACH. So if a driver is able to cope with that error code it should be fine. But what about the URBs already submitted? Will they be killed? If so, what will be their urb->status? Another question is what will happen upon resume if the device has been unplugged while the system was suspended. Will the .resume (if present) and .disconnect methods both be called? Is there any documentation on the specifics of supporting suspend/resume within a USB device driver, or a showcase driver which has perfect suspend/resume support and which I could use as reference? Thanks, Tilman -- Tilman Schmidt E-Mail: [EMAIL PROTECTED] Bonn, Germany Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Ungeöffnet mindestens haltbar bis: (siehe Rückseite)
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
