Re: [PATCH 4/4] USB: export autosuspend delay in sysfs

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

> Am Sonntag, 25. Februar 2007 17:43 schrieb Alan Stern:
> > On Sun, 25 Feb 2007, Oliver Neukum wrote:
> > 
> > > Coming to think of it, maybe the confusion could be avoided, if
> > > zero were accepted as a permissible value for autosuspend delay.
> > > Is there a reason there has to be a delay?
> > 
> > Yes.  It's a bad idea to in general to disable any resource as soon as you 
> > are through using it, if enabling and disabling take a nontrivial amount 
> > of time.
> 
> This is true. Is that a reason to disallow it? We generally don't protect
> people from themselves in kernel space.

It just doesn't seem like a useful capability.  What harm will it do to 
suspend a USB device after 1 second rather than right away?  It's hard to 
imagine a situation where you would really want to do that.

In addition it gives us a useful way to represent no autosuspend (although
I suppose we could use negative delay values for that purpose).

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[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.