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)
commit303f0847925ece27129487a2bfc05199ab2a0b51
treed368d2f9376bb452d9c79f466c710a5d7d38b64e
parent2849a3a945d0e440fa245c47c49c80ef1cc103c3
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