projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25c8295
)
NET: asix: fix ethtool -e for AX88178 USB dongle
author
Grant Grundler
<grundler@chromium.org>
Mon, 17 Oct 2011 05:51:06 +0000
(
05:51
+0000)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/usb/asix.c
b/drivers/net/usb/asix.c
index 1c85c477e174aae6149e810a025baaaf07d831ed..e81e22e3d1d2fcf84be504403002b52d492a01d8 100644
(file)
--- 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);