]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit0aa2832dd0d9d8609fd8f15139bc7572541a1215
tree9537cc80217eca1614ca988a87b34170b8dbcc8f
parente9e88fb7bca9f527ccdf4166a240a9023ba6ee73
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