Skip to contentSkip to conversation

Au1000 eth : Link beat detection

PATCH Applied Florian Fainelli 2 participants 2 messages Mar 2, 2007 – Mar 3, 2007

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

PATCH 2/7 Au1000 eth : Link beat detection

This patch fixes the link beat detection when the cable is not plugged at startup. It is not MTX1 specific.

--

drivers/net/au1000_eth.c +7 -0
diff -urN linux-2.6.16.7/drivers/net/au1000_eth.c linux-2.6.16.7.new/drivers/net/au1000_eth.c
@@ -12,6 +12,9 @@
  * Author: MontaVista Software, Inc.
  *         	[email protected] or [email protected]
  *
+ *         Bjoern Riemer 2004
+ *           [email protected] or [email protected]
+ *             // fixed the link beat detection with ioctls (SIOCGMIIPHY)
  * ########################################################################
  *
  *  This program is free software; you can distribute it and/or modify it
@@ -1672,6 +1675,10 @@
 	aup->phy_ops->phy_status(dev, aup->phy_addr, &link, &speed);
 	control = MAC_DISABLE_RX_OWN | MAC_RX_ENABLE | MAC_TX_ENABLE;
 #ifndef CONFIG_CPU_LITTLE_ENDIAN
+	/*riemer: fix for startup without cable */
+	if (!link)
+		dev->flags &= ~IFF_RUNNING;
+
 	control |= MAC_BIG_ENDIAN;
 #endif
 	if (link && (dev->if_port == IF_PORT_100BASEFX)) {
#1 lore raw
Quoted 2 lines · Florian Fainelli

This patch fixes the link beat detection when the cable is not plugged at startup. It is not MTX1 specific.

Network drivers are handled by:

NETWORK DEVICE DRIVERS

P:      Andrew Morton
M:      [email protected]
P:      Jeff Garzik
M:      [email protected]
L:      [email protected]
T:      git kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git
S:      Maintained

Ralf