]> bbs.cooldavid.org Git - net-next-2.6.git/commit
de2104x: fix ethtool
authorOndrej Zary <linux@rainbow-software.org>
Mon, 27 Sep 2010 11:41:45 +0000 (11:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2010 22:40:29 +0000 (15:40 -0700)
commit387a85628782690b56492dae4bbf544639f5d4a9
tree537e5ecdeed9d630134cd25dffe502541db51c7d
parent824044c19552e8a5f345781ccd1c2062673a41ad
de2104x: fix ethtool

When the interface is up, using ethtool breaks it because:
a) link is put down but media_timer interval is not shortened to NO_LINK
b) rxtx is stopped but not restarted

Also manual 10baseT-HD (and probably FD too - untested) mode does not work -
the link is forced up, packets are transmitted but nothing is received.
Changing CSR14 value to match documentation (not disabling link check) fixes this.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tulip/de2104x.c