Re: defficiencies in the hid autosuspend code

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Thu, 4 Oct 2007, Oliver Neukum wrote:

> Hi,
> 
> I am thinking about putting the PID detection code back in.
> 
> The problem I am now facing is that moving to a whitelist some
> opportunities are missed. What should happen to devices that can suspend
> just fine while not in use, like joysticks, but will fail if suspended while
> in use. It seems to me that a binary decision on autosuspend is not
> enough for USB HID devices. Should there be another channel?

It depends on what you mean by "in use".  Is the driver able to tell 
when the joystick is in use?  If it is, then all you have to do is put 
usb_autopm_{get,put}_interface calls around the in-use interval.

If the driver can't tell when the joystick is in use then there's no 
way to know whether autosuspend is safe, so you must avoid it.

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.