diff options
author | John W. Linville <linville@tuxdriver.com> | 2005-06-08 15:11:57 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-27 00:46:40 -0400 |
commit | e254e9bff5283aad1af6d74d2a312ee011b84d61 (patch) | |
tree | 7b87098577463bca2576d3cabe20360122c4ba84 /drivers | |
parent | 1fe2cb32763457a829d33b38ec117ffe5c98e045 (diff) |
[PATCH] b44: check link state during open
Check the link state during b44_open. This closes a 1 HZ window
that existed after b44_open ran but before the b44_timer handler ran,
during which ethtool would report "Link detected: yes" no matter what
the link state actually was.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/b44.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index 3fe8ba992c38..f1bd45e3da31 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -1285,6 +1285,9 @@ static int b44_open(struct net_device *dev) | |||
1285 | b44_init_hw(bp); | 1285 | b44_init_hw(bp); |
1286 | bp->flags |= B44_FLAG_INIT_COMPLETE; | 1286 | bp->flags |= B44_FLAG_INIT_COMPLETE; |
1287 | 1287 | ||
1288 | netif_carrier_off(dev); | ||
1289 | b44_check_phy(bp); | ||
1290 | |||
1288 | spin_unlock_irq(&bp->lock); | 1291 | spin_unlock_irq(&bp->lock); |
1289 | 1292 | ||
1290 | init_timer(&bp->timer); | 1293 | init_timer(&bp->timer); |