From 79de9efdb93d8e693dccd0eb7d80cd6092f5875b Mon Sep 17 00:00:00 2001 From: Grant Grundler Date: Mon, 17 Oct 2011 05:51:06 +0000 Subject: [PATCH] NET: asix: fix ethtool -e for AX88178 USB dongle "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 Signed-off-by: Grant Grundler Signed-off-by: David S. Miller --- drivers/net/usb/asix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c index 1c85c47..e81e22e 100644 --- a/drivers/net/usb/asix.c +++ b/drivers/net/usb/asix.c @@ -1397,6 +1397,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); -- 2.7.4