ar8031/8033/phy:enable autonegotiation for ar8031/8033
authorZhao Qiang <B45475@freescale.com>
Mon, 23 Dec 2013 07:51:33 +0000 (15:51 +0800)
committerYork Sun <yorksun@freescale.com>
Mon, 24 Feb 2014 23:23:41 +0000 (15:23 -0800)
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>
drivers/net/phy/atheros.c

index 32c2ab9944e1dfd15cf2153a55c9035d7444589c..0f437e8ffd4b7e4e9e4719ce6465698931c1ca57 100644 (file)
@@ -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;
 }