1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-10 10:50:36 +02:00
openwrt-xburst/target/linux/au1000/patches/005-au1000_eth_link_beat.patch
juhosg b8abb00e2f [au1000] bump to 2.6.25.4, refresh kernel patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11199 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-19 07:34:56 +00:00

26 lines
937 B
Diff

Index: linux-2.6.25.4/drivers/net/au1000_eth.c
===================================================================
--- linux-2.6.25.4.orig/drivers/net/au1000_eth.c
+++ linux-2.6.25.4/drivers/net/au1000_eth.c
@@ -15,6 +15,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
@@ -835,6 +838,10 @@ static int au1000_init(struct net_device
control = 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 (aup->phy_dev) {