diff options
author | Zhao Qiang <B45475@freescale.com> | 2013-12-23 15:51:33 +0800 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-02-24 15:23:41 -0800 |
commit | e0d809647fb1aa01999de9a2e59349d28d48cfee (patch) | |
tree | 9e2f7ced85384bca4d21ab77427dc7655b072689 | |
parent | c9e1f58818c2e6ac13296406125e43775c4daa55 (diff) | |
download | u-boot-imx-e0d809647fb1aa01999de9a2e59349d28d48cfee.zip u-boot-imx-e0d809647fb1aa01999de9a2e59349d28d48cfee.tar.gz u-boot-imx-e0d809647fb1aa01999de9a2e59349d28d48cfee.tar.bz2 |
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: Zhao Qiang <B45475@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
-rw-r--r-- | drivers/net/phy/atheros.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 32c2ab9..0f437e8 100644 --- a/drivers/net/phy/atheros.c +++ b/drivers/net/phy/atheros.c @@ -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, 0x1e, 0x3D47); + phydev->supported = phydev->drv->features; return 0; } |