]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
NET: asix: fix ethtool -e for AX88178 USB dongle
authorGrant Grundler <grundler@chromium.org>
Mon, 17 Oct 2011 05:51:06 +0000 (05:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 23:31:02 +0000 (19:31 -0400)
"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>
drivers/net/usb/asix.c

index 1c85c477e174aae6149e810a025baaaf07d831ed..e81e22e3d1d2fcf84be504403002b52d492a01d8 100644 (file)
@@ -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);