Re: defficiencies in the hid autosuspend code

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

> Am Freitag 05 Oktober 2007 schrieb Alan Stern:
> > > Do you think HID will be the only driver with this problem?
> > > I doubt it. There'll be cases of devices not allowing aggresive
> > > power save, but allowing mild measures.
> > 
> > That may well be true.  Do you think those other drivers will be able 
> > to tell the two kinds of devices apart more easily than usbhid?  If the
> 
> I don't know. For usbhid I am hoping that remote wakeup will save me.
> 
> > driver can tell what kind of device it's dealing with, there's no 
> > problem.  And this really isn't the sort of thing the user should have 
> > to worry about.
> 
> By that logic the kernel should autodetect whether autosuspend is
> used at all.

I disagree.  Whether or not autosuspend should be used at all depends 
on the inherent properties of the device (whether it can resume 
correctly).  Whether or not to autosuspend when the device file is 
opened depends on the usage pattern, which in principle the kernel does 
know about.

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.