From: Eugene Surovegin Date: Wed, 16 May 2007 19:01:05 +0000 (-0700) Subject: ibm_emac: fix link speed detection change X-Git-Tag: v2.6.22-rc2~20 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=dbf2e8585971f2a8b1f60a188dc245fd2f8f81b3;p=linux-2.6-omap-h63xx.git ibm_emac: fix link speed detection change Fix link speed detection change. Thanks to Stefan Roese for finding this bug. CC: Stefan Roese Signed-off-by: Eugene Surovegin Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/ibm_emac/ibm_emac_core.c b/drivers/net/ibm_emac/ibm_emac_core.c index 50035ebd4f5..f752e5fc65b 100644 --- a/drivers/net/ibm_emac/ibm_emac_core.c +++ b/drivers/net/ibm_emac/ibm_emac_core.c @@ -926,7 +926,7 @@ static int emac_link_differs(struct ocp_enet_private *dev) int duplex = r & EMAC_MR1_FDE ? DUPLEX_FULL : DUPLEX_HALF; int speed, pause, asym_pause; - if (r & (EMAC_MR1_MF_1000 | EMAC_MR1_MF_1000GPCS)) + if (r & EMAC_MR1_MF_1000) speed = SPEED_1000; else if (r & EMAC_MR1_MF_100) speed = SPEED_100;