]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "phy: micrel: Disable auto negotiation on startup"
authorDavid S. Miller <davem@davemloft.net>
Wed, 26 Apr 2017 18:33:14 +0000 (14:33 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Apr 2017 18:34:07 +0000 (14:34 -0400)
This reverts commit 86ec4f684265f3d2c60bd2f387cde7c5830140dc.

It was papering over the real problem, which is fixed by commit
7a6387ca6749 ("net: phy: fix auto-negotiation stall due to unavailable
interrupt")

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c

index 1326d99771c115cfd3868c1834e850bf9b1459ef..da5b392683703b9ece67a24ebcb59aadeba7cc8e 100644 (file)
@@ -297,17 +297,6 @@ static int kszphy_config_init(struct phy_device *phydev)
        if (priv->led_mode >= 0)
                kszphy_setup_led(phydev, type->led_mode_reg, priv->led_mode);
 
-       if (phy_interrupt_is_valid(phydev)) {
-               int ctl = phy_read(phydev, MII_BMCR);
-
-               if (ctl < 0)
-                       return ctl;
-
-               ret = phy_write(phydev, MII_BMCR, ctl & ~BMCR_ANENABLE);
-               if (ret < 0)
-                       return ret;
-       }
-
        return 0;
 }