From: Xiaobo Xie Date: Fri, 11 Apr 2014 08:03:11 +0000 (+0800) Subject: AR8035/phy: Enable autonegotiation function for ar8035 X-Git-Tag: v2014.07-rc2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02aa4c538838edc918ff4e7e9e4121259552ef70;p=platform%2Fkernel%2Fu-boot.git 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 --- 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; }