]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: don't let errors prevent system sleep
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 15 Jun 2011 20:27:43 +0000 (16:27 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 13 Jul 2011 03:29:25 +0000 (05:29 +0200)
commitae6fe57b28b609c59f6e04ecf65d1e8f6fe470bc
tree60b2a21df41002a74ba6cdc6a6ed81ccb0f17b7e
parent68e62de3e747b9ae5e811a77ccece7c425dae830
USB: don't let errors prevent system sleep

commit 0af212ba8f123c2eba151af7726c34a50b127962 upstream.

This patch (as1464) implements the recommended policy that most errors
during suspend or hibernation should not prevent the system from going
to sleep.  In particular, failure to suspend a USB driver or a USB
device should not prevent the sleep from succeeding:

Failure to suspend a device won't matter, because the device will
automatically go into suspend mode when the USB bus stops carrying
packets.  (This might be less true for USB-3.0 devices, but let's not
worry about them now.)

Failure of a driver to suspend might lead to trouble later on when the
system wakes up, but it isn't sufficient reason to prevent the system
from going to sleep.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/driver.c