1 --- a/drivers/net/arm/ixp4xx_eth.c
2 +++ b/drivers/net/arm/ixp4xx_eth.c
3 @@ -322,8 +322,12 @@ static void phy_reset(struct net_device
4 struct port *port = netdev_priv(dev);
5 int phy_id = port->mii[idx].phy_id;
9 - mdio_write(dev, phy_id, MII_BMCR, port->mii_bmcr[idx] | BMCR_RESET);
11 + bmcr = mdio_read(dev, phy_id, MII_BMCR);
12 + bmcr |= BMCR_ANENABLE;
13 + mdio_write(dev, phy_id, MII_BMCR, bmcr | BMCR_RESET);
15 while (cycles < MAX_MII_RESET_RETRIES) {
16 if (!(mdio_read(dev, phy_id, MII_BMCR) & BMCR_RESET)) {
17 @@ -331,13 +335,23 @@ static void phy_reset(struct net_device
18 printk(KERN_DEBUG "%s: phy_reset() took %i cycles\n",
28 - printk(KERN_ERR "%s: MII reset failed on PHY%2d\n", dev->name, phy_id);
29 + if (cycles == MAX_MII_RESET_RETRIES) {
30 + printk(KERN_ERR "%s: MII reset failed on PHY%2d\n", dev->name,
35 + /* restart auto negotiation */
36 + bmcr = mdio_read(dev, phy_id, MII_BMCR);
37 + bmcr |= (BMCR_ANENABLE | BMCR_ANRESTART);
38 + mdio_write(dev, phy_id, MII_BMCR, bmcr);
42 static void eth_set_duplex(struct port *port, int full_duplex)