Re: [PATCH] USB: disable autosuspend by default for non-hubs

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

> Am Mittwoch 22 August 2007 schrieb Alan Stern:
> > > > It would be a good idea to put this in 2.6.23.  If it turns out not to
> > > > be necessary we can always remove it later; the conservative course for
> > > > now is to avoid breaking lots of devices all at once.
> > > 
> > > But with a simple config change, those devices are not broken, right?
> > 
> > Right, turning off CONFIG_USB_SUSPEND makes this issue moot.  The
> > downside is it also prevents the system from suspending hubs with no
> > active children, which currently works just fine as far as I know.
> 
> This could also be achieved with making the default a module parameter.

The default already is a module parameter.  :-)  Not only that, it is 
writable (by root) so the user can change the default for new devices 
while the system is running.

> If changing the default for other devices can be left to udev, hubs can take
> the same path.

Yes, there could be a rule for udev to set the autosuspend delay to 2
for hubs and leave other devices alone.  It still would be a little
tricky to get the configuration right on systems where usbcore is
loaded from an initramfs image.

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.