Skip to content

Commit

Permalink
ibm_emac: fix link speed detection change
Browse files Browse the repository at this point in the history
Fix link speed detection change.
Thanks to Stefan Roese <sr@denx.de> for finding this bug.

CC: Stefan Roese <sr@denx.de>
Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Eugene Surovegin authored and Jeff Garzik committed May 18, 2007
1 parent 5bb96e9 commit dbf2e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ibm_emac/ibm_emac_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dbf2e85

Please sign in to comment.