]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: comments on suspend failure
authorMing Lei <ming.lei@canonical.com>
Fri, 15 Mar 2013 04:08:54 +0000 (12:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 17:55:46 +0000 (10:55 -0700)
commit4c8a8323fa51c5a3a368576e76a8232a398780e7
tree5dde1f9ff6ff273d80e1f53677fc5a682dd149f7
parent2452967e8db337b6d0f94103a4609cad4d36d3dd
USB: serial: comments on suspend failure

If suspend callback fails in system sleep context, usb core will
ignore the failure and let system sleep go ahead further, so
this patch comments on the case and requires that serial->type->suspend()
MUST return 0 in system sleep context.

Acked-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/usb-serial.c