Re: defficiencies in the hid autosuspend code
Oliver Neukum <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
Am Donnerstag 04 Oktober 2007 schrieb Alan Stern: > I'm not sure I understand your problem. Are you saying that some > devices will work okay with autosuspend so long as the device file > isn't open, whereas other devices will work okay even when the device > file is open? Yes. > In that case there are two possible solutions. One is to rely on > userspace to disable autosuspend whenever it opens the device file. > This may not be practical, but in the end something like it may turn > out to be best. > > The other is to figure out some way for the driver to know whether the > open routine should call usb_autopm_get_interface(), and similarly for > the close routine. I don't like the idea of adding a sysfs attribute > for this, or even changing the power/level attribute (e.g., add an > "auto-closed" setting). 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. Regards Oliver ------------------------------------------------------------------------- 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