瀏覽代碼

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

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 <leoli@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Li Yang 16 年之前
父節點
當前提交
f430e49e9e
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/net/gianfar.c

+ 2 - 0
drivers/net/gianfar.c

@@ -1973,6 +1973,8 @@ static void adjust_link(struct net_device *dev)
 			case 1000:
 			case 1000:
 				tempval =
 				tempval =
 				    ((tempval & ~(MACCFG2_IF)) | MACCFG2_GMII);
 				    ((tempval & ~(MACCFG2_IF)) | MACCFG2_GMII);
+
+				ecntrl &= ~(ECNTRL_R100);
 				break;
 				break;
 			case 100:
 			case 100:
 			case 10:
 			case 10: