]> git.baikalelectronics.ru Git - kernel.git/commit
USB: prevent autosuspend during hub initialization
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 27 Oct 2008 16:07:44 +0000 (12:07 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 29 Oct 2008 21:54:41 +0000 (14:54 -0700)
commite20040024a14f04f61ea20342894b3cef764e922
treec8f71dc1dd86c81712d4c9f5cf59b70826eb54d5
parentf4d9461f13568635efed24d45497135c2d450510
USB: prevent autosuspend during hub initialization

This patch (as1153) fixes a potential problem in hub initialization.
Starting in 2.6.28, initialization was split into several tasks to
help speed up booting.  This opens the possibility that the hub may be
autosuspended before all the initialization tasks can complete.

Normally that wouldn't matter, but with incomplete initialization
there is a risk that the hub would never autoresume -- especially if
devices were plugged into the hub beforehand.  The solution is a
simple one-line change to suppress autosuspend until the
initialization is finished.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c