]> git.baikalelectronics.ru Git - kernel.git/commit
usb: hub_handle_remote_wakeup() depends on CONFIG_PM_RUNTIME=y
authorDan Williams <dan.j.williams@intel.com>
Wed, 21 May 2014 01:09:31 +0000 (18:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 23:51:51 +0000 (16:51 -0700)
commit9af5caa3c553260c31a67ffd78b11eb60cce7d14
tree6e305d41d1ee55f12522602ba17eb1a65041c5e5
parentfe12d44c3cdf114271b31e8efb7a93b9d59c0727
usb: hub_handle_remote_wakeup() depends on CONFIG_PM_RUNTIME=y

Per Alan:
"You mean from within hub_handle_remote_wakeup()?  That routine will
never get called if CONFIG_PM_RUNTIME isn't enabled, because khubd
never sees wakeup requests if they arise during system suspend.

In fact, that routine ought to go inside the "#ifdef CONFIG_PM_RUNTIME"
portion of hub.c, along with the other suspend/resume code."

Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c
drivers/usb/core/usb.h