]> git.baikalelectronics.ru Git - kernel.git/commit
usb: enable usb port device's async suspend.
authorLan Tianyu <tianyu.lan@intel.com>
Tue, 22 Jan 2013 20:26:32 +0000 (04:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Jan 2013 18:14:20 +0000 (10:14 -0800)
commit7368e6ab86300de7437b1ba73c9d47a113346f22
tree200d5fb4bf44c30f3fd12d427e34d796ee9cc0d1
parenta2f90f93e553c2d5bcbb0947f11e7df517f23b43
usb: enable usb port device's async suspend.

This patch is to set power.async_suspend for usb port in order
to allow it to be suspended and resumed asynchronously during
system sleep transitions.

The power.async_suspend flag is also set for devices that don't have
suspend or resume callbacks, because otherwise they would make the
main suspend/resume thread wait for their "asynchronous" children
(during suspend) or parents (during resume), effectively negating the
possible gains from executing these devices' suspend and resume
callbacks asynchronously.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/port.c