Use 2.6.27 for au1000
[openwrt/openwrt.git] / target / linux / au1000 / patches-2.6.27 / 004-state_led_phy_fix.patch
1 --- linux-2.6.27/drivers/net/au1000_eth.c 2008-10-18 22:37:52.000000000 +0200
2 +++ linux-2.6.27.new/drivers/net/au1000_eth.c 2008-11-02 22:03:14.000000000 +0100
3 @@ -187,6 +187,15 @@
4 # undef AU1XXX_PHY1_IRQ
5 #endif
6
7 +#if defined(CONFIG_MIPS_MTX1)
8 +/*
9 + * 4G MeshCube (MTX-1) board
10 + * PHY is at address 31 on MAC0
11 + * autodetect fails if not searched for highest address !
12 + */
13 +# define AU1XXX_PHY_SEARCH_HIGHEST_ADDR
14 +#endif
15 +
16 #if defined(AU1XXX_PHY0_BUSID) && (AU1XXX_PHY0_BUSID > 0)
17 # error MAC0-associated PHY attached 2nd MACs MII bus not supported yet
18 #endif
19 @@ -383,6 +392,12 @@
20 aup->old_duplex = -1;
21 aup->phy_dev = phydev;
22
23 +#ifdef CONFIG_MIPS_MTX1
24 + /* set up ethernet jack LEDs on the 4G MeshCube (MTX-1 board) */
25 + printk(KERN_INFO "MTX-1 PHY: updating LED settings\n");
26 + phy_write(phydev, 0x11, 0xff80);
27 +#endif
28 +
29 printk(KERN_INFO "%s: attached PHY driver [%s] "
30 "(mii_bus:phy_addr=%s, irq=%d)\n",
31 dev->name, phydev->drv->name, phydev->dev.bus_id, phydev->irq);