forked from Minki/linux
Revert "phy: micrel: Disable auto negotiation on startup"
This reverts commit99f81afc13
. It was papering over the real problem, which is fixed by commitf555f34fdc
("net: phy: fix auto-negotiation stall due to unavailable interrupt") Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f555f34fdc
commit
b43bd72835
@ -297,17 +297,6 @@ static int kszphy_config_init(struct phy_device *phydev)
|
|||||||
if (priv->led_mode >= 0)
|
if (priv->led_mode >= 0)
|
||||||
kszphy_setup_led(phydev, type->led_mode_reg, priv->led_mode);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user