Skip to content

Commit

Permalink
macb: Fix speed setting
Browse files Browse the repository at this point in the history
Fix NCFGR.SPD setting on 10Mbps.  This bug was introduced by
conversion to generic PHY layer in kernel 2.6.23.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Atsushi Nemoto authored and Jeff Garzik committed Feb 24, 2008
1 parent a84d0a3 commit 179956f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/macb.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static void macb_handle_link_change(struct net_device *dev)

if (phydev->duplex)
reg |= MACB_BIT(FD);
if (phydev->speed)
if (phydev->speed == SPEED_100)
reg |= MACB_BIT(SPD);

macb_writel(bp, NCFGR, reg);
Expand Down

0 comments on commit 179956f

Please sign in to comment.