macb: Fix speed setting
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>
This commit is contained in:
parent
a84d0a3d69
commit
179956f498
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue