summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorAlison Wang <b18965@freescale.com>2016-02-19 15:52:28 +0800
committerJoe Hershberger <joe.hershberger@ni.com>2016-02-26 13:32:37 -0600
commit903d384d401bdfc517266787549caf4630a7f305 (patch)
treec67d532910b1d12898205dcc6403aca36a9ce975 /drivers/net
parent24862c640ea50ac88be343161eb681bea5dbfeef (diff)
downloadu-boot-imx-903d384d401bdfc517266787549caf4630a7f305.zip
u-boot-imx-903d384d401bdfc517266787549caf4630a7f305.tar.gz
u-boot-imx-903d384d401bdfc517266787549caf4630a7f305.tar.bz2
net: phy: atheros: Fix problem with phy_reset() clearing BMCR
In commit <a058052c358c> [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 <alison.wang@nxp.com> Acked-by: Stefan Agner <stefan@agner.ch> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/phy/atheros.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c
index ba57b1a..e57c412 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;
}