* [PATCH] NET: asix: fix ethtool -e for AX88178 USB dongle
@ 2011-10-17 15:51 Grant Grundler
2011-10-19 23:31 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Grant Grundler @ 2011-10-17 15:51 UTC (permalink / raw)
To: davem; +Cc: netdev, linux-kernel, allan, Freddy Xin, Grant Grundler
"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 <allan@asix.com.tw>
Signed-off-by: Grant Grundler <grundler@chromium.org>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] NET: asix: fix ethtool -e for AX88178 USB dongle
2011-10-17 15:51 [PATCH] NET: asix: fix ethtool -e for AX88178 USB dongle Grant Grundler
@ 2011-10-19 23:31 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-10-19 23:31 UTC (permalink / raw)
To: grundler; +Cc: netdev, linux-kernel, allan, freddy
From: Grant Grundler <grundler@chromium.org>
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 <allan@asix.com.tw>
> Signed-off-by: Grant Grundler <grundler@chromium.org>
Applied to net-next, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-19 23:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-17 15:51 [PATCH] NET: asix: fix ethtool -e for AX88178 USB dongle Grant Grundler
2011-10-19 23:31 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).