Skip to content

USB: don't recover device if suspend fails in system sleep

Ming Lei linux-input netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 of 7 patches 1 replyIn review
  2. v23 of 7 patches 3 repliesSuperseded
  3. v12 of 7 patches 3 repliesSuperseded

Changes in v3 from the cover letter

	- only 2/7 changed, don't change code but add comments to
	restrict subdriver->suspend(), suggested by Johan Hovold.

3 of 7 patches are in this archive. The cover letter announces 7.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7USB: adds comment on suspend callbackdrivers/usb/core/driver.c include/linux/usb.h+14 -40 replies
2/7USB: serial: comments on suspend failuredrivers/usb/serial/usb-serial.c+5 -01 reply
5/7usbnet: qmi_wwan: comments on suspend failuredrivers/net/usb/qmi_wwan.c+5 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlan SternJiri KosinaDavid S. MillerBjørn MorkJohan Hovold
SeriesA-b A-b A-b A-b A-b
1/7A-b
2/7A-b
5/7A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/7] USB: don't recover device if suspend fails in system sleep

Hi,

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, otherwise the recovery things may confuse resume().

Also fixes USB HID and several usbnet drivers which may recover device in suspend failure path of system sleep.

v3:

	- only 2/7 changed, don't change code but add comments to
	restrict subdriver->suspend(), suggested by Johan Hovold.

v2:
- improve comments on suspend callback as suggested by Alan
- update kerneldoc for usb_suspend_both as suggested by Alan
- remove previous check of PMSG_IS_AUTO(message) in cdc_mbim/ qmi_wwan and add comments on suspend failure case, since Bjørn doesn't like the check.
- add comments on smsc95xx/smsc75xx
v1:
- fix compile failure
- add comments about handling suspend failure in resume()

 drivers/hid/usbhid/hid-core.c   |   14 +++++---------
 drivers/net/usb/cdc_mbim.c      |    5 +++++
 drivers/net/usb/qmi_wwan.c      |    5 +++++
 drivers/net/usb/smsc75xx.c      |    6 +++++-
 drivers/net/usb/smsc95xx.c      |    6 +++++-
 drivers/usb/core/driver.c       |   11 ++++++++---
 drivers/usb/serial/usb-serial.c |    5 +++++
 include/linux/usb.h             |    7 ++++++-
 8 files changed, 44 insertions(+), 15 deletions(-)

Thanks
--
Ming Lei

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html