From: Li Yang Date: Tue, 6 Jan 2009 22:08:10 +0000 (-0800) Subject: gianfar: ensure ECNTRL[R100] is cleared on link state change X-Git-Tag: v2.6.29-rc1~45^2~70 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f430e49e9e0cf821c090abedb399b80ebf0cb4c6;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Kumar Gala Acked-by: Andy Fleming Signed-off-by: David S. Miller --- diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index c672ecfc959..7fcc3af3f86 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: