mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] emac: add missing support of 10mbit in emac/rgmii
@ 2014-05-26 18:24 Ivan Mikhaylov
  2014-05-30 23:31 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Ivan Mikhaylov @ 2014-05-26 18:24 UTC (permalink / raw)
  To: netdev
  Cc: netdev, linux-kernel, devicetree, David S. Miller,
	Alistair Popple, Rob Herring, Grant Likely

In chips of emac/rgmii b'000' for 0/1 channel isn't suitable which
resulted in non working network interface in this mode.

Signed-off-by: Ivan Mikhaylov <ivan@ru.ibm.com>

---
 drivers/net/ethernet/ibm/emac/rgmii.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/ethernet/ibm/emac/rgmii.c b/drivers/net/ethernet/ibm/emac/rgmii.c
index 4fb2f96..a01182c 100644
--- a/drivers/net/ethernet/ibm/emac/rgmii.c
+++ b/drivers/net/ethernet/ibm/emac/rgmii.c
@@ -45,6 +45,7 @@
 
 /* RGMIIx_SSR */
 #define RGMII_SSR_MASK(idx)	(0x7 << ((idx) * 8))
+#define RGMII_SSR_10(idx)	(0x1 << ((idx) * 8))
 #define RGMII_SSR_100(idx)	(0x2 << ((idx) * 8))
 #define RGMII_SSR_1000(idx)	(0x4 << ((idx) * 8))
 
@@ -139,6 +140,8 @@ void rgmii_set_speed(struct platform_device *ofdev, int input, int speed)
 		ssr |= RGMII_SSR_1000(input);
 	else if (speed == SPEED_100)
 		ssr |= RGMII_SSR_100(input);
+	else if (speed == SPEED_10)
+		ssr |= RGMII_SSR_10(input);
 
 	out_be32(&p->ssr, ssr);
 
-- 
1.9.3




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

* Re: [PATCH 1/2] emac: add missing support of 10mbit in emac/rgmii
  2014-05-26 18:24 [PATCH 1/2] emac: add missing support of 10mbit in emac/rgmii Ivan Mikhaylov
@ 2014-05-30 23:31 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-05-30 23:31 UTC (permalink / raw)
  To: ivan; +Cc: netdev, linux-kernel, devicetree, alistair, robh+dt, grant.likely

From: Ivan Mikhaylov <ivan@ru.ibm.com>
Date: Mon, 26 May 2014 22:24:17 +0400

> In chips of emac/rgmii b'000' for 0/1 channel isn't suitable which
> resulted in non working network interface in this mode.
> 
> Signed-off-by: Ivan Mikhaylov <ivan@ru.ibm.com>

Applied.

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

end of thread, other threads:[~2014-05-30 23:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-26 18:24 [PATCH 1/2] emac: add missing support of 10mbit in emac/rgmii Ivan Mikhaylov
2014-05-30 23:31 ` David Miller

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

all inboxes | Powered by JetHome®