From 903d384d401bdfc517266787549caf4630a7f305 Mon Sep 17 00:00:00 2001 From: Alison Wang Date: Fri, 19 Feb 2016 15:52:28 +0800 Subject: net: phy: atheros: Fix problem with phy_reset() clearing BMCR In commit [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: Alison Wang Acked-by: Stefan Agner Acked-by: Joe Hershberger --- drivers/net/phy/atheros.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers') diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index ba57b1a4b9..e57c4120a3 100644 --- a/drivers/net/phy/atheros.c +++ b/drivers/net/phy/atheros.c @@ -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; } -- cgit v1.2.1