asix: Don't reset PHY on if_up for ASIX 88772
authorMichel Stam <m.stam@fugro.nl>
Thu, 2 Oct 2014 08:22:02 +0000 (10:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Oct 2014 22:38:49 +0000 (15:38 -0700)
I've noticed every time the interface is set to 'up,', the kernel
reports that the link speed is set to 100 Mbps/Full Duplex, even
when ethtool is used to set autonegotiation to 'off', half
duplex, 10 Mbps.
It can be tested by:
 ifconfig eth0 down
 ethtool -s eth0 autoneg off speed 10 duplex half
 ifconfig eth0 up

Then checking 'dmesg' for the link speed.

Signed-off-by: Michel Stam <m.stam@fugro.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix_devices.c

index 5d194093f3e1f3b3c1893faf0cf8ebb266facdad..2c05f6cdb12f3a1e2ae9bed29c6241cee7dc3a46 100644 (file)
@@ -890,7 +890,7 @@ static const struct driver_info ax88772_info = {
        .unbind = ax88772_unbind,
        .status = asix_status,
        .link_reset = ax88772_link_reset,
-       .reset = ax88772_reset,
+       .reset = ax88772_link_reset,
        .flags = FLAG_ETHER | FLAG_FRAMING_AX | FLAG_LINK_INTR | FLAG_MULTI_PACKET,
        .rx_fixup = asix_rx_fixup_common,
        .tx_fixup = asix_tx_fixup,