diff options
Diffstat (limited to 'drivers/net/usb/qmi_wwan.c')
-rw-r--r-- | drivers/net/usb/qmi_wwan.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c index 2a3579f67910..5a88e72090ce 100644 --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c | |||
@@ -374,6 +374,11 @@ static int qmi_wwan_suspend(struct usb_interface *intf, pm_message_t message) | |||
374 | struct qmi_wwan_state *info = (void *)&dev->data; | 374 | struct qmi_wwan_state *info = (void *)&dev->data; |
375 | int ret; | 375 | int ret; |
376 | 376 | ||
377 | /* | ||
378 | * Both usbnet_suspend() and subdriver->suspend() MUST return 0 | ||
379 | * in system sleep context, otherwise, the resume callback has | ||
380 | * to recover device from previous suspend failure. | ||
381 | */ | ||
377 | ret = usbnet_suspend(intf, message); | 382 | ret = usbnet_suspend(intf, message); |
378 | if (ret < 0) | 383 | if (ret < 0) |
379 | goto err; | 384 | goto err; |