From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 3/4] net phylib: Clear BMCR_PDOWN bit
Date: Sat, 8 Dec 2012 17:58:21 +0100 [thread overview]
Message-ID: <1354985902-11317-4-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1354985902-11317-1-git-send-email-s.hauer@pengutronix.de>
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@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-12-08 16:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-08 16:58 [PATCH] fixes Sascha Hauer
2012-12-08 16:58 ` [PATCH 1/4] ARM startup: Ensure CR_A flag is cleared on architectures >= ARMv6 Sascha Hauer
2012-12-08 16:58 ` [PATCH 2/4] ARM omap3: Call common_reset Sascha Hauer
2012-12-08 16:58 ` Sascha Hauer [this message]
2012-12-08 16:58 ` [PATCH 4/4] net phylib: Call phy_update_status when no link is present Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1354985902-11317-4-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox