[au1000] bump to 2.6.25.4, refresh kernel patches
[openwrt-10.03/.git] / target / linux / au1000 / patches / 005-au1000_eth_link_beat.patch
1 Index: linux-2.6.25.4/drivers/net/au1000_eth.c
2 ===================================================================
3 --- linux-2.6.25.4.orig/drivers/net/au1000_eth.c
4 +++ linux-2.6.25.4/drivers/net/au1000_eth.c
5 @@ -15,6 +15,9 @@
6   * Author: MontaVista Software, Inc.
7   *             ppopov@mvista.com or source@mvista.com
8   *
9 + *         Bjoern Riemer 2004
10 + *           riemer@fokus.fraunhofer.de or riemer@riemer-nt.de
11 + *             // fixed the link beat detection with ioctls (SIOCGMIIPHY)
12   * ########################################################################
13   *
14   *  This program is free software; you can distribute it and/or modify it
15 @@ -835,6 +838,10 @@ static int au1000_init(struct net_device
16  
17         control = MAC_RX_ENABLE | MAC_TX_ENABLE;
18  #ifndef CONFIG_CPU_LITTLE_ENDIAN
19 +       /*riemer: fix for startup without cable */
20 +       if (!link)
21 +               dev->flags &= ~IFF_RUNNING;
22 +
23         control |= MAC_BIG_ENDIAN;
24  #endif
25         if (aup->phy_dev) {