linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] drivers: net cpsw: Enable In Band mode in cpsw for 10 mbps
@ 2013-12-13 13:12 Mugunthan V N
  2013-12-18 21:54 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Mugunthan V N @ 2013-12-13 13:12 UTC (permalink / raw)
  To: netdev; +Cc: davem, linux-omap, Mugunthan V N

This patch adds support for enabling In Band mode in 10 mbps speed.
RGMII supports 1 Gig and 100 mbps mode for Forced mode of operation.
For 10mbps mode it should be configured to in band mode so that link
status, duplexity and speed are determined from the RGMII input data
stream

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
---
 drivers/net/ethernet/ti/cpsw.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
index d80dfce..989968b 100644
--- a/drivers/net/ethernet/ti/cpsw.c
+++ b/drivers/net/ethernet/ti/cpsw.c
@@ -740,6 +740,8 @@ static void _cpsw_adjust_link(struct cpsw_slave *slave,
 		/* set speed_in input in case RMII mode is used in 100Mbps */
 		if (phy->speed == 100)
 			mac_control |= BIT(15);
+		else if (phy->speed == 10)
+			mac_control |= BIT(18); /* In Band mode */
 
 		*link = true;
 	} else {
-- 
1.8.5.1.93.g077f434


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

* Re: [PATCH 1/1] drivers: net cpsw: Enable In Band mode in cpsw for 10 mbps
  2013-12-13 13:12 [PATCH 1/1] drivers: net cpsw: Enable In Band mode in cpsw for 10 mbps Mugunthan V N
@ 2013-12-18 21:54 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-12-18 21:54 UTC (permalink / raw)
  To: mugunthanvnm; +Cc: netdev, linux-omap

From: Mugunthan V N <mugunthanvnm@ti.com>
Date: Fri, 13 Dec 2013 18:42:55 +0530

> This patch adds support for enabling In Band mode in 10 mbps speed.
> RGMII supports 1 Gig and 100 mbps mode for Forced mode of operation.
> For 10mbps mode it should be configured to in band mode so that link
> status, duplexity and speed are determined from the RGMII input data
> stream
> 
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>

Applied, thanks.

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

end of thread, other threads:[~2013-12-18 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-13 13:12 [PATCH 1/1] drivers: net cpsw: Enable In Band mode in cpsw for 10 mbps Mugunthan V N
2013-12-18 21:54 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).