[PATCH] NET: asix: fix ethtool -e for AX88178 USB dongle

Subsystems: networking drivers, the rest, usb networking drivers

STALE5420d

2 messages, 2 authors, 2011-10-19 · open the first message on its own page

[PATCH] NET: asix: fix ethtool -e for AX88178 USB dongle

From: Grant Grundler <hidden>
Date: 2011-10-17 15:51:38

"ethtool -e ethX" dumps EEPROM data. Patch sets EEPROM length for device.
Ethtool works alot better when the kernel believes the length is > 0.

From: Allan Chou <redacted>
Signed-off-by: Grant Grundler <redacted>
---
 drivers/net/usb/asix.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c
index 66e5ccb..03a1621 100644
--- a/drivers/net/usb/asix.c
+++ b/drivers/net/usb/asix.c
@@ -1399,6 +1399,9 @@ static int ax88178_bind(struct usbnet *dev, struct usb_interface *intf)
 	int ret;
 	u8 buf[ETH_ALEN];
 	u32 phyid;
+	struct asix_data *data = (struct asix_data *)&dev->data;
+
+	data->eeprom_len = AX88772_EEPROM_LEN;
 
 	usbnet_get_endpoints(dev,intf);
 
-- 
1.7.2.3

Re: [PATCH] NET: asix: fix ethtool -e for AX88178 USB dongle

From: David Miller <davem@davemloft.net>
Date: 2011-10-19 23:31:31

From: Grant Grundler <redacted>
Date: Mon, 17 Oct 2011 08:51:06 -0700
"ethtool -e ethX" dumps EEPROM data. Patch sets EEPROM length for device.
Ethtool works alot better when the kernel believes the length is > 0.

From: Allan Chou <redacted>
Signed-off-by: Grant Grundler <redacted>
Applied to net-next, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help