[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 <tommy.christensen@tpack.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
c8d127418d
commit
2de93fbf3c
@@ -1889,6 +1889,7 @@ vortex_timer(unsigned long data)
|
|||||||
{
|
{
|
||||||
spin_lock_bh(&vp->lock);
|
spin_lock_bh(&vp->lock);
|
||||||
mii_status = mdio_read(dev, vp->phys[0], 1);
|
mii_status = mdio_read(dev, vp->phys[0], 1);
|
||||||
|
mii_status = mdio_read(dev, vp->phys[0], 1);
|
||||||
ok = 1;
|
ok = 1;
|
||||||
if (vortex_debug > 2)
|
if (vortex_debug > 2)
|
||||||
printk(KERN_DEBUG "%s: MII transceiver has status %4.4x.\n",
|
printk(KERN_DEBUG "%s: MII transceiver has status %4.4x.\n",
|
||||||
|
Reference in New Issue
Block a user