lkml.org 
[lkml]   [2009]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 06/71] dsa: fix 88e6xxx statistics counter snapshotting
    2.6.30-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Stephane Contri <Stephane.Contri@grassvalley.com>

    commit 1ded3f59f35a2642852b3e2a1c0fa8a97777e9af upstream.

    The bit that tells us whether a statistics counter snapshot operation
    has completed is located in the GLOBAL register block, not in the
    GLOBAL2 register block, so fix up mv88e6xxx_stats_wait() to poll the
    right register address.

    Signed-off-by: Stephane Contri <Stephane.Contri@grassvalley.com>
    Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

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

    --- a/net/dsa/mv88e6xxx.c
    +++ b/net/dsa/mv88e6xxx.c
    @@ -418,7 +418,7 @@ static int mv88e6xxx_stats_wait(struct d
    int i;

    for (i = 0; i < 10; i++) {
    - ret = REG_READ(REG_GLOBAL2, 0x1d);
    + ret = REG_READ(REG_GLOBAL, 0x1d);
    if ((ret & 0x8000) == 0)
    return 0;
    }



    \
     
     \ /
      Last update: 2009-07-29 01:53    [W:4.068 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site