strip the kernel version suffix from target directories, except for brcm-2.4 (the...
[openwrt/staging/florian.git] / target / linux / au1000 / patches / 005-au1000_eth_link_beat.patch
1 diff -urN linux-2.6.16.7/drivers/net/au1000_eth.c linux-2.6.16.7.new/drivers/net/au1000_eth.c
2 --- linux-2.6.16.7/drivers/net/au1000_eth.c 2006-04-17 23:53:25.000000000 +0200
3 +++ linux-2.6.16.7.new/drivers/net/au1000_eth.c 2006-04-23 01:42:48.000000000 +0200
4 @@ -12,6 +12,9 @@
5 * Author: MontaVista Software, Inc.
6 * ppopov@mvista.com or source@mvista.com
7 *
8 + * Bjoern Riemer 2004
9 + * riemer@fokus.fraunhofer.de or riemer@riemer-nt.de
10 + * // fixed the link beat detection with ioctls (SIOCGMIIPHY)
11 * ########################################################################
12 *
13 * This program is free software; you can distribute it and/or modify it
14 @@ -1672,6 +1675,10 @@
15 aup->phy_ops->phy_status(dev, aup->phy_addr, &link, &speed);
16 control = MAC_DISABLE_RX_OWN | MAC_RX_ENABLE | MAC_TX_ENABLE;
17 #ifndef CONFIG_CPU_LITTLE_ENDIAN
18 + /*riemer: fix for startup without cable */
19 + if (!link)
20 + dev->flags &= ~IFF_RUNNING;
21 +
22 control |= MAC_BIG_ENDIAN;
23 #endif
24 if (link && (dev->if_port == IF_PORT_100BASEFX)) {