> The infrastructure for dynamic local PM hasn't been created yet, so for 
> now you can do pretty much whatever you like.  Not long ago David added a 
> usb_suspend_root_hub routine to usbcore to help with such things; I don't 
> know if you will want to use it.
> 
> The safest thing is to call dpm_runtime_suspend.  That will acquire the 
> lock for you.

Ok, so my driver should dpm_runtime_suspend() on itself, which will
cause the driver->suspend() routine to be called from which I can then
call usb_suspend_device(), right ?

I know we don't have proper infrastructure yet, just wondering what to
do in the meantime as I may give a try at doing some runtime suspend to
a couple of drivers to save power on my laptop :)

Ben.




-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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