]> git.karo-electronics.de Git - linux-beck.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)
commit4fae6f0fa86f92e6bc7429371b1e177ad0aaac66
tree1599430fb103e3c108c8db19860b5c9055ee976e
parent28e861658e23ca94692f98e245d254c75c8088a7
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