1 diff -Nur linux-2.6.23.16/drivers/net/arm/ixp4xx_eth.c linux-2.6.23.16-owrt/drivers/net/arm/ixp4xx_eth.c
2 --- linux-2.6.23.16/drivers/net/arm/ixp4xx_eth.c 2008-02-15 18:18:02.000000000 +0100
3 +++ linux-2.6.23.16-owrt/drivers/net/arm/ixp4xx_eth.c 2008-02-18 12:14:42.000000000 +0100
8 + /* For boards that use a switch chip (eg. Marvell 88E6060) */
9 + if ( phy_id < 0 || phy_id > 31 ) {
29 spin_lock_irqsave(&mdio_lock, flags);
30 val = mdio_cmd(dev, phy_id, location, 0, 0);
31 spin_unlock_irqrestore(&mdio_lock, flags);
36 + if ( phy_id < 0 || phy_id > 31 ) {
39 spin_lock_irqsave(&mdio_lock, flags);
40 mdio_cmd(dev, phy_id, location, 1, val);
41 spin_unlock_irqrestore(&mdio_lock, flags);