Skip to content
Snippets Groups Projects
Commit e0d80964 authored by Zhao Qiang's avatar Zhao Qiang Committed by York Sun
Browse files

ar8031/8033/phy:enable autonegotiation for ar8031/8033


Function "genphy_parse_link()" used "if (mii_reg & BMSR_ANEGCAPABLE)" before
while "if (phydev->supported & SUPPORTED_Autoneg)" now.
So assign "phydev->supported" to "phydev->drv->features" for ar8031/8033
to enable autonegotiation.

Signed-off-by: default avatarZhao Qiang <B45475@freescale.com>
Reviewed-by: default avatarYork Sun <yorksun@freescale.com>
parent c9e1f588
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ static int ar8021_config(struct phy_device *phydev) ...@@ -13,6 +13,7 @@ static int ar8021_config(struct phy_device *phydev)
phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x05); phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x05);
phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x3D47); phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x3D47);
phydev->supported = phydev->drv->features;
return 0; 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