Skip to contentSkip to conversation

ax88179_178a: add reset functionality in reset_resume

PATCH Vivek Kumar Bhagat 2 participants 2 messages Jul 1, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hello David,

I configured my email client and below patch does not have indentation issue of converting tabs into spaces. I hope it should be accepted.

Thanks,
Vivek

------- Original Message -------
Sender : Vivek Kumar Bhagat<[email protected]> Chief Engineer/SRI-Delhi-System S/W 1 Team/Samsung Electronics Date : Jul 01, 2015 09:44 (GMT+05:30)
Title : [PATCH] ax88179_178a: add reset functionality in reset_resume

Without reset functionality in reset_resume, iperf connection does not establish after suspend/resume however ping works at the same time. iperf connection fails by giving checksum error in tcpdump.

reset function inside reset_resume solves above bug. We have verified it on ASIX based ST Lab, Cadyce dongle.

Signed-off-by Vivek Kumar Bhagat
Signed-off-by Praveen Kumar

---
drivers/net/usb/ax88179_178a.c | 14 +++++++++++++-

1 file changed, 13 insertions(+), 1 deletion(-)
drivers/net/usb/ax88179_178a.c +0 -0
index e6338c1..00928c0 100644
@@ -1630,6 +1630,18 @@ static int ax88179_stop(struct usbnet *dev)

return 0;
}

+static int ax88179_reset_resume(struct usb_interface *intf) +{
+ struct usbnet *dev = usb_get_intfdata(intf);
+ int ret;
+
+ ret = ax88179_reset(dev);
+ if (ret < 0)
+ return ret;
+
+ return ax88179_resume(intf);
+}
+
static const struct driver_info ax88179_info = { .description = "ASIX AX88179 USB 3.0 Gigabit Ethernet", .bind = ax88179_bind,
@@ -1744,7 +1756,7 @@ static struct usb_driver ax88179_178a_driver = { .probe = usbnet_probe,
.suspend = ax88179_suspend,
.resume = ax88179_resume,
- .reset_resume = ax88179_resume,
+ .reset_resume = ax88179_reset_resume,
.disconnect = usbnet_disconnect,
.supports_autosuspend = 1,
.disable_hub_initiated_lpm = 1,

Signature · 1 line
1.7.9.5
maintainer
#1 lore raw

From: Vivek Kumar Bhagat <[email protected]>
Date: Wed, 01 Jul 2015 11:33:58 +0000 (GMT)

Quoted 2 lines

I configured my email client and below patch does not have indentation issue of converting tabs into spaces. I hope it should be accepted.

Patchwork is not recognizing your postings as a patch submission, therefore it's not ending up in my queue of patches to handle.