Skip to contentSkip to conversation

net: usb: asix_devices: add .reset_resume for USB PM

PATCH Applied Peter Chen 2 participants 2 messages Jan 3, 2017 – Jan 4, 2017

Subsystems (3)
lore
Share & tools
lore

Peter Chen

author
#0 lore raw

PATCH 1/1 net: usb: asix_devices: add .reset_resume for USB PM

The USB core may call reset_resume when it fails to resume asix device. And USB core can recovery this abnormal resume at low level driver, the same .resume at asix driver can work too. Add .reset_resume can avoid disconnecting after backing from system resume, and NFS can still be mounted after this commit.

---
 drivers/net/usb/asix_devices.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/usb/asix_devices.c +1 -0
index 6c646e2..6e98ede 100644
@@ -1367,6 +1367,7 @@ static struct usb_driver asix_driver = {
 	.probe =	usbnet_probe,
 	.suspend =	asix_suspend,
 	.resume =	asix_resume,
+	.reset_resume =	asix_resume,
 	.disconnect =	usbnet_disconnect,
 	.supports_autosuspend = 1,
 	.disable_hub_initiated_lpm = 1,
Signature · 6 lines
2.7.4

--
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
maintainer Applied
#1 lore raw

From: Peter Chen <[email protected]>
Date: Tue, 3 Jan 2017 17:22:20 +0800

Quoted 7 lines

The USB core may call reset_resume when it fails to resume asix device. And USB core can recovery this abnormal resume at low level driver, the same .resume at asix driver can work too. Add .reset_resume can avoid disconnecting after backing from system resume, and NFS can still be mounted after this commit.

Applied, thank you.