aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/net/mcs7830.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2006-10-08 18:08:01 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-10-17 17:46:32 -0400
commitc41286fd42f3545513f8de9f61028120b6d38e89 (patch)
tree2dddcf5c7423c0db62a1f8752c002cf62080287b /drivers/usb/net/mcs7830.c
parent2a36d7083438ccb607055abae633f39495a99947 (diff)
usbnet: improve generic ethtool support
This adds generic support for the ethtool commands get_settings, set_settings, get_link and nway_reset to usbnet. These are now implemented using mii functions when a low-level driver supports mdio_read/mdio_write and does not override the usbnet ethtool commands with its own. Currently, this applies to the asix and the mcs7830 drivers. I have tested it on mcs7830. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: David Hollis <dhollis@davehollis.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/net/mcs7830.c')
-rw-r--r--drivers/usb/net/mcs7830.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/net/mcs7830.c b/drivers/usb/net/mcs7830.c
index 0266090a1d7d..23a80667f17e 100644
--- a/drivers/usb/net/mcs7830.c
+++ b/drivers/usb/net/mcs7830.c
@@ -430,8 +430,12 @@ static struct ethtool_ops mcs7830_ethtool_ops = {
430 .get_regs = mcs7830_get_regs, 430 .get_regs = mcs7830_get_regs,
431 431
432 /* common usbnet calls */ 432 /* common usbnet calls */
433 .get_link = usbnet_get_link,
433 .get_msglevel = usbnet_get_msglevel, 434 .get_msglevel = usbnet_get_msglevel,
434 .set_msglevel = usbnet_set_msglevel, 435 .set_msglevel = usbnet_set_msglevel,
436 .get_settings = usbnet_get_settings,
437 .set_settings = usbnet_set_settings,
438 .nway_reset = usbnet_nway_reset,
435}; 439};
436 440
437static int mcs7830_bind(struct usbnet *dev, struct usb_interface *udev) 441static int mcs7830_bind(struct usbnet *dev, struct usb_interface *udev)