From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH 1/1] designware: fix 100mps phy support
Date: Sun, 14 Oct 2012 16:23:18 +0200 [thread overview]
Message-ID: <1350224598-16979-1-git-send-email-plagnioj@jcrosoft.com> (raw)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
drivers/net/designware.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index 63b199f..7eadd92 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -244,6 +244,16 @@ static void dwc_update_linkspeed(struct eth_device *edev)
conf &= ~MII_PORTSELECT;
else
conf |= MII_PORTSELECT;
+
+ if ((edev->phydev->interface != PHY_INTERFACE_MODE_MII) &&
+ (edev->phydev->interface != PHY_INTERFACE_MODE_GMII)) {
+
+ if (edev->phydev->speed == 100)
+ conf |= FES_100;
+ else
+ conf &= ~FES_100;
+ }
+
writel(conf, &mac_p->conf);
}
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2012-10-14 14:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-14 14:23 Jean-Christophe PLAGNIOL-VILLARD [this message]
2012-10-14 14:25 ` [PATCH 1/1] net:designware: allow to pass the phy interface Jean-Christophe PLAGNIOL-VILLARD
2012-10-15 6:55 ` [PATCH 1/1] designware: fix 100mps phy support Sascha Hauer
2012-10-16 11:34 ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-16 20:35 ` Sascha Hauer
2012-10-21 18:37 ` Jean-Christophe PLAGNIOL-VILLARD
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=1350224598-16979-1-git-send-email-plagnioj@jcrosoft.com \
--to=plagnioj@jcrosoft.com \
--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