diff options
author | John W. Linville <linville@tuxdriver.com> | 2005-06-08 19:11:57 (GMT) |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-27 04:46:40 (GMT) |
commit | e254e9bff5283aad1af6d74d2a312ee011b84d61 (patch) | |
tree | 7b87098577463bca2576d3cabe20360122c4ba84 /drivers/net/b44.c | |
parent | 1fe2cb32763457a829d33b38ec117ffe5c98e045 (diff) | |
download | linux-fsl-qoriq-e254e9bff5283aad1af6d74d2a312ee011b84d61.tar.xz |
[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/net/b44.c')
-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 3fe8ba9..f1bd45e 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c @@ -1285,6 +1285,9 @@ static int b44_open(struct net_device *dev) b44_init_hw(bp); bp->flags |= B44_FLAG_INIT_COMPLETE; + netif_carrier_off(dev); + b44_check_phy(bp); + spin_unlock_irq(&bp->lock); init_timer(&bp->timer); |