usbnet: improve generic ethtool support
authorArnd Bergmann <arnd@arndb.de>
Sun, 8 Oct 2006 22:08:01 +0000 (00:08 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Oct 2006 21:46:32 +0000 (14:46 -0700)
commitc41286fd42f3545513f8de9f61028120b6d38e89
tree2dddcf5c7423c0db62a1f8752c002cf62080287b
parent2a36d7083438ccb607055abae633f39495a99947
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>
drivers/usb/net/asix.c
drivers/usb/net/mcs7830.c
drivers/usb/net/usbnet.c
drivers/usb/net/usbnet.h