Skip to content
Snippets Groups Projects
Commit 903d384d authored by Alison Wang's avatar Alison Wang Committed by Joe Hershberger
Browse files

net: phy: atheros: Fix problem with phy_reset() clearing BMCR


In commit <a058052c> [net: phy: do not read configuration register on
reset], phy_reset() will clear the BMCR register. Bit 12(AUTO_NEGOTIATION)
is cleared too. It causes auto-negotiation timeout error on Atheros's
PHY AR8033.

To fix this problem, genphy_config_aneg() and genphy_restart_aneg()
needs to be called in ar8035_config() to enable and restart
auto-negotiation.

Signed-off-by: default avatarAlison Wang <alison.wang@nxp.com>
Acked-by: default avatarStefan Agner <stefan@agner.ch>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 24862c64
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,9 @@ static int ar8035_config(struct phy_device *phydev)
phydev->supported = phydev->drv->features;
genphy_config_aneg(phydev);
genphy_restart_aneg(phydev);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment