diff options
author | Xiaobo Xie <X.Xie@freescale.com> | 2014-04-11 16:03:11 +0800 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-05-12 15:19:45 -0400 |
commit | 02aa4c538838edc918ff4e7e9e4121259552ef70 (patch) | |
tree | 2abfca617065b63d40552581b884a2485d9e1f9d /drivers | |
parent | d57dee5787ad96d2c80bf36f443276592d39ee21 (diff) | |
download | u-boot-imx-02aa4c538838edc918ff4e7e9e4121259552ef70.zip u-boot-imx-02aa4c538838edc918ff4e7e9e4121259552ef70.tar.gz u-boot-imx-02aa4c538838edc918ff4e7e9e4121259552ef70.tar.bz2 |
AR8035/phy: Enable autonegotiation function for ar8035
Function "genphy_parse_link()" used "if (mii_reg & BMSR_ANEGCAPABLE)" before,
but used "if (phydev->supported & SUPPORTED_Autoneg)" now.
So assign "phydev->supported" to "phydev->drv->features" for ar8035
to enable autonegotiation. Then removed the genphy_config_aneg() function.
Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/phy/atheros.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index abd4e5b..d509e30 100644 --- a/drivers/net/phy/atheros.c +++ b/drivers/net/phy/atheros.c @@ -31,9 +31,7 @@ static int ar8035_config(struct phy_device *phydev) regval = phy_read(phydev, MDIO_DEVAD_NONE, 0x1e); phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, (regval|0x0100)); - genphy_config_aneg(phydev); - - phy_reset(phydev); + phydev->supported = phydev->drv->features; return 0; } |