]> git.baikalelectronics.ru Git - kernel.git/commit
USB: fix root-hub resume when CONFIG_USB_SUSPEND is not set
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 19 Sep 2006 14:08:43 +0000 (10:08 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 27 Sep 2006 18:58:57 +0000 (11:58 -0700)
commit073ba9bc92b1fb72208a9640b62b3eff07ce1f9f
tree4b21f83f393e7fefb5c73e0e460052b67058f178
parent7ccbebb697ec47f35a67fa837edfdd3c198b2970
USB: fix root-hub resume when CONFIG_USB_SUSPEND is not set

This patch (as786) removes a redundant test and fixes a problem
involving repeated system sleeps when CONFIG_USB_SUSPEND is not set.
During the first wakeup, the root hub's dev.power.power_state.event
field doesn't get updated, causing it not to be suspended during the
second sleep transition.

This takes care of the issue raised by Rafael J. Wysocki and Mattia
Dongili.

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