Patchwork smsc75xx: fix resume after device reset

login
register
mail settings
Submitter Steve Glendinning
Date Sept. 24, 2012, 2:42 p.m.
Message ID <1348497779-10042-1-git-send-email-steve.glendinning@shawell.net>
Download mbox | patch
Permalink /patch/186450/
State Accepted
Delegated to: David Miller
Headers show

Comments

Steve Glendinning - Sept. 24, 2012, 2:42 p.m.
On some systems this device fails to properly resume after suspend,
this patch fixes it by running the usbnet_resume handler.

I suspect this also fixes this bug:

http://code.google.com/p/chromium-os/issues/detail?id=31871
---
 drivers/net/usb/smsc75xx.c |    1 +
 1 file changed, 1 insertion(+)
Steve Glendinning - Sept. 26, 2012, 3:35 p.m.
Oops, missing signed-off line.  Please let me know if you want me to
resubmit this patch.

Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>

-Steve
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - Sept. 27, 2012, 10 p.m.
From: Steve Glendinning <steve.glendinning@shawell.net>
Date: Mon, 24 Sep 2012 15:42:59 +0100

> On some systems this device fails to properly resume after suspend,
> this patch fixes it by running the usbnet_resume handler.
> 
> I suspect this also fixes this bug:
> 
> http://code.google.com/p/chromium-os/issues/detail?id=31871

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c
index f5ab6e6..376143e 100644
--- a/drivers/net/usb/smsc75xx.c
+++ b/drivers/net/usb/smsc75xx.c
@@ -1253,6 +1253,7 @@  static struct usb_driver smsc75xx_driver = {
 	.probe		= usbnet_probe,
 	.suspend	= usbnet_suspend,
 	.resume		= usbnet_resume,
+	.reset_resume	= usbnet_resume,
 	.disconnect	= usbnet_disconnect,
 	.disable_hub_initiated_lpm = 1,
 };