]> git.baikalelectronics.ru Git - kernel.git/commit
USB: use "global suspend" for system sleep on USB-2 buses
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 27 Mar 2013 20:14:19 +0000 (16:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 18:06:27 +0000 (11:06 -0700)
commit21838fd1619255d92b299cc69bebf0584b974ace
tree9537cc80217eca1614ca988a87b34170b8dbcc8f
parentd7fbea23f9f235aa6e82dfbcc14e4d37dd8e95fa
USB: use "global suspend" for system sleep on USB-2 buses

This patch (as1674) speeds up system sleep transitions by not
suspending each individual device on a USB-1.1 or USB-2 bus.  The
devices will automatically go into suspend when their root hubs are
suspended (i.e., stop sending out Start-Of-Frame packets) -- this is
what the USB spec calls "global suspend".

Since this is what we do already when CONFIG_USB_SUSPEND isn't
enabled, it shouldn't cause any problems.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c