USB: fix root-hub resume when CONFIG_USB_SUSPEND is not set
commit592fbbe4bc339399d363dd55f0391e0623400706
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 19 Sep 2006 14:08:43 +0000 (19 10:08 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 27 Sep 2006 18:58:57 +0000 (27 11:58 -0700)
tree4b21f83f393e7fefb5c73e0e460052b67058f178
parent02c399ee45a54987c152fe5f627ed949bb55f187
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