mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] designware: fix 100mps phy support
@ 2012-10-14 14:23 Jean-Christophe PLAGNIOL-VILLARD
  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
  0 siblings, 2 replies; 6+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-10-14 14:23 UTC (permalink / raw)
  To: barebox

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

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

end of thread, other threads:[~2012-10-21 18:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-14 14:23 [PATCH 1/1] designware: fix 100mps phy support Jean-Christophe PLAGNIOL-VILLARD
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

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