[PATCH] gianfar: ensure ECNTRL[R100] is cleared on link state change

Subsystems: networking drivers, the rest

STALE6460d

3 messages, 3 authors, 2009-01-06 · open the first message on its own page

[PATCH] gianfar: ensure ECNTRL[R100] is cleared on link state change

From: Kumar Gala <hidden>
Date: 2009-01-06 20:55:02

From: Leo Li <redacted>

When changing the link between 100Mbps and 1Gbps in SGMII mode it was
found out that the link would stop working.  The issue is that ECNTRL[R100]
needs to be cleared when in 1Gbps mode.  Older reference manuals didn't
require the explicitly clearing but has since been found it that it is
needed.

Signed-off-by: Li Yang <redacted>
Signed-off-by: Kumar Gala <redacted>
---

Dave,

Please apply for 2.6.29 as it addresses a "HW" bug in real systems.

thanks

- k

 drivers/net/gianfar.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index c672ecf..7fcc3af 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -1973,6 +1973,8 @@ static void adjust_link(struct net_device *dev)
 			case 1000:
 				tempval =
 				    ((tempval & ~(MACCFG2_IF)) | MACCFG2_GMII);
+
+				ecntrl &= ~(ECNTRL_R100);
 				break;
 			case 100:
 			case 10:
-- 
1.5.6.5

Re: [PATCH] gianfar: ensure ECNTRL[R100] is cleared on link state change

From: Andy Fleming <hidden>
Date: 2009-01-06 20:56:57

On Jan 6, 2009, at 2:52 PM, Kumar Gala wrote:
From: Leo Li <redacted>

When changing the link between 100Mbps and 1Gbps in SGMII mode it was
found out that the link would stop working.  The issue is that  
ECNTRL[R100]
needs to be cleared when in 1Gbps mode.  Older reference manuals  
didn't
require the explicitly clearing but has since been found it that it is
needed.

Signed-off-by: Li Yang <redacted>
Signed-off-by: Kumar Gala <redacted>
Acked-by: Andy Fleming <redacted>

Re: [PATCH] gianfar: ensure ECNTRL[R100] is cleared on link state change

From: David Miller <davem@davemloft.net>
Date: 2009-01-06 22:08:17

From: Andy Fleming <redacted>
Date: Tue, 6 Jan 2009 14:56:25 -0600
On Jan 6, 2009, at 2:52 PM, Kumar Gala wrote:
quoted
From: Leo Li <redacted>

When changing the link between 100Mbps and 1Gbps in SGMII mode it was
found out that the link would stop working.  The issue is that ECNTRL[R100]
needs to be cleared when in 1Gbps mode.  Older reference manuals didn't
require the explicitly clearing but has since been found it that it is
needed.

Signed-off-by: Li Yang <redacted>
Signed-off-by: Kumar Gala <redacted>
Acked-by: Andy Fleming <redacted>
Applied, thanks everyone.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help