From: Peter Chen Date: Tue, 3 Jan 2017 09:22:20 +0000 (+0800) Subject: net: usb: asix_devices: add .reset_resume for USB PM X-Git-Tag: v4.9.41~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2548d893a542bab079ef72266ff297ff61a20ef3;p=platform%2Fkernel%2Flinux-amlogic.git net: usb: asix_devices: add .reset_resume for USB PM [ Upstream commit 63dfb0dac9055145db85ce764355aef2f563739a ] 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/usb/asix_devices.c index dc7b639..50737de 100644 --- a/drivers/net/usb/asix_devices.c +++ b/drivers/net/usb/asix_devices.c @@ -1369,6 +1369,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,