[PATCH 3/4] net phylib: Clear BMCR_PDOWN bit
Sascha Hauer
s.hauer at pengutronix.de
Sat Dec 8 11:58:21 EST 2012
Some phys come up with this bit set, clear it so that these phys
can work. This has been observed with a ASIX compatible USB ethernet
adapter.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/net/phy/phy.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index ed185e1..58546f8 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -443,6 +443,9 @@ int genphy_restart_aneg(struct phy_device *phydev)
/* Don't isolate the PHY if we're negotiating */
ctl &= ~(BMCR_ISOLATE);
+ /* Clear powerdown bit which eventually is set on some phys */
+ ctl &= ~BMCR_PDOWN;
+
ctl = phy_write(phydev, MII_BMCR, ctl);
if (ctl < 0)
--
1.7.10.4
More information about the barebox
mailing list