1 Index: linux-2.6.23.17/drivers/net/arm/ixp4xx_eth.c
2 ===================================================================
3 --- linux-2.6.23.17.orig/drivers/net/arm/ixp4xx_eth.c
4 +++ linux-2.6.23.17/drivers/net/arm/ixp4xx_eth.c
5 @@ -297,6 +297,27 @@ static int mdio_read(struct net_device *
9 + /* For boards that use a switch chip (eg. Marvell 88E6060) */
10 + if ( phy_id < 0 || phy_id > 31 ) {
30 spin_lock_irqsave(&mdio_lock, flags);
31 val = mdio_cmd(dev, phy_id, location, 0, 0);
32 spin_unlock_irqrestore(&mdio_lock, flags);
33 @@ -308,6 +329,9 @@ static void mdio_write(struct net_device
37 + if ( phy_id < 0 || phy_id > 31 ) {
40 spin_lock_irqsave(&mdio_lock, flags);
41 mdio_cmd(dev, phy_id, location, 1, val);
42 spin_unlock_irqrestore(&mdio_lock, flags);