[PATCH 3/3] ibm_emac: fix link speed detection change

Eugene Surovegin ebs at ebshome.net
Thu May 17 05:01:05 EST 2007


Fix link speed detection change.
Thanks to Stefan Roese <sr at denx.de> for finding this bug.

CC: Stefan Roese <sr at denx.de>
Signed-off-by: Eugene Surovegin <ebs at ebshome.net>

---
 drivers/net/ibm_emac/ibm_emac_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/ibm_emac/ibm_emac_core.c b/drivers/net/ibm_emac/ibm_emac_core.c
index 50035eb..f752e5f 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;



More information about the Linuxppc-embedded mailing list