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.

Consider what would happen (and did happen to me in the early stages of
development!) when you run lsusb, if every device were autosuspended as 
soon as its usbfs file was closed and every hub were autosuspended as soon 
as all its children were.  To take a mild case, a suspended hub with 3
children would have to wake up and be put back to sleep 4 times!

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
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to