]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] forcedeth: Initialize link settings in every nv_open()
authorManfred Spraul <manfred@colorfullife.com>
Sun, 11 Sep 2005 20:33:28 +0000 (21:33 +0100)
committerChris Wright <chrisw@osdl.org>
Sat, 17 Sep 2005 01:01:56 +0000 (18:01 -0700)
commit2498037d5a6668b733acc712a3106ffd4e1ef735
tree4977bb8c81c3b8f7e8ed81da348ee440fc5448e4
parent98debffa9114b60138b3dbd4d02ce13f01a07ab4
[PATCH] forcedeth: Initialize link settings in every nv_open()

R�diger found a bug in nv_open that explains some of the reports
with duplex mismatches:
nv_open calls nv_update_link_speed for initializing the hardware link speed
registers. If current link setting matches the values in np->linkspeed and
np->duplex, then the function does nothing.
Usually, doing nothing is the right thing, but not in nv_open: During
nv_open, the registers must be initialized because the nic was reset.

The attached patch fixes that by setting np->linkspeed to an invalid value
before calling nv_update_link_speed from nv_open.

Signed-Off-By: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Chris Wright <chrisw@osdl.org>
drivers/net/forcedeth.c