]> git.baikalelectronics.ru Git - kernel.git/commit
USB: handle LPM errors during device suspend correctly
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 30 Jul 2013 19:39:02 +0000 (15:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2013 00:29:03 +0000 (17:29 -0700)
commit76d4c949cfa667255a74254c93ead1e963c76beb
tree1599430fb103e3c108c8db19860b5c9055ee976e
parent11894b6bfcf7798a646d63347671469d07db32d8
USB: handle LPM errors during device suspend correctly

The hub driver's usb_port_suspend() routine doesn't handle errors
related to Link Power Management properly.  It always returns failure,
it doesn't try to clean up the wakeup setting, (in the case of system
sleep) it doesn't try to go ahead with the port suspend regardless,
and it doesn't try to apply the new power-off mechanism.

This patch fixes these problems.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c