diff options
| author | Tommy S. Christensen <tommy.christensen@tpack.net> | 2005-09-06 18:17:28 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 19:57:30 -0400 |
| commit | 2de93fbf3c427df010b5a923c302e20c143d60cf (patch) | |
| tree | 1771b690cdee80312ace3fe046e29e965a0b30eb /drivers | |
| parent | c8d127418d78aaeeb1a417ef7453dc09c9118146 (diff) | |
[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>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/3c59x.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
| 1889 | { | 1889 | { |
| 1890 | spin_lock_bh(&vp->lock); | 1890 | spin_lock_bh(&vp->lock); |
| 1891 | mii_status = mdio_read(dev, vp->phys[0], 1); | 1891 | mii_status = mdio_read(dev, vp->phys[0], 1); |
| 1892 | mii_status = mdio_read(dev, vp->phys[0], 1); | ||
| 1892 | ok = 1; | 1893 | ok = 1; |
| 1893 | if (vortex_debug > 2) | 1894 | if (vortex_debug > 2) |
| 1894 | printk(KERN_DEBUG "%s: MII transceiver has status %4.4x.\n", | 1895 | printk(KERN_DEBUG "%s: MII transceiver has status %4.4x.\n", |
