On Fri, 9 Sep 2005, Luca Risolia wrote: > Hello all, > > Do you know what's the best approach to avoid power consuption > while an USB2 device is not in use? > > I'd prefer to handle suspend/resume from the driver itself, > but the main problem happens on module unloading. In this > case, if I suspend the device, I can not load the module > again becouse the USB core does not resume the device on probe(). > > In facts, from usb.c: > > 100 /* FIXME we'd much prefer to just resume it ... */ > 101 if (interface_to_usbdev(intf)->state == USB_STATE_SUSPENDED) > 102 return -EHOSTUNREACH; > > Thanks in advance.
This is indeed a sore point. At the moment, two solutions occur to me: (1) Write a patch to resume suspended devices when binding, or (2) Unplug/turn off the device. Alan Stern ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
