Commit e254e9bf authored by John W. Linville's avatar John W. Linville Committed by Jeff Garzik

[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: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1fe2cb32
...@@ -1285,6 +1285,9 @@ static int b44_open(struct net_device *dev) ...@@ -1285,6 +1285,9 @@ static int b44_open(struct net_device *dev)
b44_init_hw(bp); b44_init_hw(bp);
bp->flags |= B44_FLAG_INIT_COMPLETE; bp->flags |= B44_FLAG_INIT_COMPLETE;
netif_carrier_off(dev);
b44_check_phy(bp);
spin_unlock_irq(&bp->lock); spin_unlock_irq(&bp->lock);
init_timer(&bp->timer); init_timer(&bp->timer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment