Re: About current state of supporting USB selective suspend feature

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Fri, 27 Jul 2007, gutian abei wrote:

> Dear All:
> I am trying to develop a USB device driver in Linux platform.
> I want to know the current state of supporting USB selective suspend 
> feature of Linux USB core. This feature is described by USB specification 
> 2.0.

The USB core supports selective suspend (also known as "runtime 
suspend" or "autosuspend").  However individual USB device drivers must 
also include support, which means the driver must implement at least a 
suspend() and a resume() method, and it must set the 
.supports_autosuspend flag in its usb_driver structure.  It also must 
call usb_autopm_get_interface() and usb_autopm_put_interface() at the 
appropriate times.

There's a lot of documention in the comments in 
drivers/usb/core/driver.c.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.