Skip to contentSkip to conversation

b44: check link state during open

PATCH New John W. Linville 1 participant 1 message Jun 8, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

 drivers/net/b44.c |    3 +++
 1 files changed, 3 insertions(+)
drivers/net/b44.c renamed from drivers/net/b44.c.orig +3 -0
@@ -1285,6 +1285,9 @@ static int b44_open(struct net_device *d
 	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);
Signature · 2 lines
John W. Linville
[email protected]