public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] AR8035/phy: Enable autonegotiation function for ar8035
@ 2014-04-11  8:03 Xie Xiaobo
  2014-05-13  1:51 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Xie Xiaobo @ 2014-04-11  8:03 UTC (permalink / raw)
  To: u-boot

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>
---
 drivers/net/phy/atheros.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c
index b80980d..7993ec9 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;
 }
-- 
1.8.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] AR8035/phy: Enable autonegotiation function for ar8035
  2014-04-11  8:03 [U-Boot] [PATCH] AR8035/phy: Enable autonegotiation function for ar8035 Xie Xiaobo
@ 2014-05-13  1:51 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2014-05-13  1:51 UTC (permalink / raw)
  To: u-boot

On Fri, Apr 11, 2014 at 04:03:11PM +0800, Xiaobo Xie wrote:

> 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>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140512/56d5715a/attachment.pgp>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-13  1:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-11  8:03 [U-Boot] [PATCH] AR8035/phy: Enable autonegotiation function for ar8035 Xie Xiaobo
2014-05-13  1:51 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox