]> git.baikalelectronics.ru Git - kernel.git/commit
USB: adds comment on suspend callback
authorMing Lei <ming.lei@canonical.com>
Fri, 15 Mar 2013 04:08:53 +0000 (12:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 17:55:46 +0000 (10:55 -0700)
commit2452967e8db337b6d0f94103a4609cad4d36d3dd
treed368d2f9376bb452d9c79f466c710a5d7d38b64e
parent52c57f3a398cfcb51e5583082da9a11500a69491
USB: adds comment on suspend callback

This patch adds comments on interface driver suspend callback
to emphasize that the failure return value is ignored by
USB core in system sleep context, so do not try to recover
device for this case and let resume/reset_resume callback
handle the suspend failure if needed.

Also kerneldoc for usb_suspend_both() is updated with the
fact.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/driver.c
include/linux/usb.h