Re: [patch]another quirky device
Alan Stern <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 20 Aug 2007, Jean Delvare wrote: > On Mon, 20 Aug 2007 10:00:26 -0400 (EDT), Alan Stern wrote: > > On Mon, 20 Aug 2007, Jean Delvare wrote: > > > > > Hmm, maybe my question wasn't totally clear, let me rephrase. Shouldn't > > > sysfs reflect the fact that autosuspend is disabled for my device > > > somehow? When I read "2" from the autosuspend file, it gives me the > > > impression that autosuspend is enabled, and I think it's confusing. > > > > There's a different sysfs attribute that gets set when autosuspend is > > disabled. The .../power/level attribute file can be set to "on", > > "auto", or "suspend". > > > > > (I thought that an autosuspend value of 0 meant that autosuspend was > > > disabled, but your reply make me understand that this isn't the case. > > > Sorry for the confusion.) > > > > It was the case in 2.6.22, but in 2.6.23 0 means to autosuspend as soon > > as possible. > > Ah, OK, thanks for the clarification. But then isn't level=on redundant > with autosuspend=-1? It is. The intent was that the two attribute files could have different permissions. Oliver can explain it all. 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