summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorGrant Grundler <grundler@chromium.org>2011-10-17 07:51:06 +0200
committerDavid S. Miller <davem@davemloft.net>2011-10-20 01:31:02 +0200
commit79de9efdb93d8e693dccd0eb7d80cd6092f5875b (patch)
tree01c751e742b46966e47b49e5197abc97875d4d8d /drivers/net/usb
parentcleanup: remove unnecessary include. (diff)
downloadlinux-79de9efdb93d8e693dccd0eb7d80cd6092f5875b.tar.xz
linux-79de9efdb93d8e693dccd0eb7d80cd6092f5875b.zip
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 <allan@asix.com.tw> Signed-off-by: Grant Grundler <grundler@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/asix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c
index 1c85c477e174..e81e22e3d1d2 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);