summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/asix_devices.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2017-01-03 10:22:20 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-04 19:03:08 +0100
commit63dfb0dac9055145db85ce764355aef2f563739a (patch)
tree897af37f05af159a16577bf83a1045f295397a9e /drivers/net/usb/asix_devices.c
parentnet: vrf: Add missing Rx counters (diff)
downloadlinux-63dfb0dac9055145db85ce764355aef2f563739a.tar.xz
linux-63dfb0dac9055145db85ce764355aef2f563739a.zip
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. Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/asix_devices.c')
-rw-r--r--drivers/net/usb/asix_devices.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/usb/asix_devices.c
index 6c646e228833..6e98ede997d3 100644
--- a/drivers/net/usb/asix_devices.c
+++ b/drivers/net/usb/asix_devices.c
@@ -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,