* [PATCH 2/7] Au1000 eth : Link beat detection
@ 2007-03-02 21:07 Florian Fainelli
2007-03-03 14:38 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2007-03-02 21:07 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 176 bytes --]
This patch fixes the link beat detection when the cable is not plugged at
startup. It is not MTX1 specific.
Signed-off-by: Florian Fainelli <florian.fainelli@int-evry.fr>
--
[-- Attachment #2: 005-au1000_eth_link_beat.patch --]
[-- Type: text/plain, Size: 1061 bytes --]
diff -urN linux-2.6.16.7/drivers/net/au1000_eth.c linux-2.6.16.7.new/drivers/net/au1000_eth.c
--- linux-2.6.16.7/drivers/net/au1000_eth.c 2006-04-17 23:53:25.000000000 +0200
+++ linux-2.6.16.7.new/drivers/net/au1000_eth.c 2006-04-23 01:42:48.000000000 +0200
@@ -12,6 +12,9 @@
* Author: MontaVista Software, Inc.
* ppopov@mvista.com or source@mvista.com
*
+ * Bjoern Riemer 2004
+ * riemer@fokus.fraunhofer.de or riemer@riemer-nt.de
+ * // 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)) {
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH 2/7] Au1000 eth : Link beat detection
2007-03-02 21:07 [PATCH 2/7] Au1000 eth : Link beat detection Florian Fainelli
@ 2007-03-03 14:38 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2007-03-03 14:38 UTC (permalink / raw)
To: Florian Fainelli; +Cc: linux-mips
On Fri, Mar 02, 2007 at 10:07:35PM +0100, Florian Fainelli wrote:
> 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: akpm@linux-foundation.org
P: Jeff Garzik
M: jgarzik@pobox.com
L: netdev@vger.kernel.org
T: git kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git
S: Maintained
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-03 14:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-02 21:07 [PATCH 2/7] Au1000 eth : Link beat detection Florian Fainelli
2007-03-03 14:38 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox