From: Tommy S. Christensen Date: Tue, 6 Sep 2005 22:17:28 +0000 (-0700) Subject: [PATCH] 3c59x: read current link status from phy X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2de93fbf3c427df010b5a923c302e20c143d60cf;p=openwrt%2Fstaging%2Fblogic.git [PATCH] 3c59x: read current link status from phy The phy status register must be read twice in order to get the actual link state. Signed-off-by: Tommy S. Christensen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index de0dc4ab6e54..455ba915ede7 100644 --- a/drivers/net/3c59x.c +++ b/drivers/net/3c59x.c @@ -1889,6 +1889,7 @@ vortex_timer(unsigned long data) { spin_lock_bh(&vp->lock); mii_status = mdio_read(dev, vp->phys[0], 1); + mii_status = mdio_read(dev, vp->phys[0], 1); ok = 1; if (vortex_debug > 2) printk(KERN_DEBUG "%s: MII transceiver has status %4.4x.\n",