]> 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)
commit83d5fa2be71e90e58e4ef3ab99128bdbb0200b54
treed368d2f9376bb452d9c79f466c710a5d7d38b64e
parent93f957a8784fd3143530ade86f11911a2c969681
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