From: Manfred Spraul Date: Sat, 6 Aug 2005 21:47:55 +0000 (+0200) Subject: [PATCH] forcedeth: Initialize link settings in every nv_open() X-Git-Tag: v2.6.14-rc1~1055^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b1b3c9b6d346d441a99e2de0b34f3ba93963ad8;p=pandora-kernel.git [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 Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed