lkml.org 
[lkml]   [2008]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 50/76] macb: Fix speed setting
    -stable review patch.  If anyone has any objections, please let us know.
    ---------------------

    From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

    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>
    Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
    Signed-off-by: Chris Wright <chrisw@sous-sol.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    ---

    drivers/net/macb.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/net/macb.c
    +++ b/drivers/net/macb.c
    @@ -148,7 +148,7 @@ static void macb_handle_link_change(stru

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

    macb_writel(bp, NCFGR, reg);
    --


    \
     
     \ /
      Last update: 2008-03-22 00:09    [W:3.789 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site