[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090703092648.GM19647@mail.wantstofly.org>
Date: Fri, 3 Jul 2009 11:26:48 +0200
From: Lennert Buytenhek <buytenh@...tstofly.org>
To: davem@...emloft.net, netdev@...r.kernel.org
Cc: stable@...nel.org, Stephane.Contri@...ssvalley.com
Subject: [PATCH] dsa: fix 88e6xxx statistics counter snapshotting
From: Stephane Contri <Stephane.Contri@...ssvalley.com>
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@...ssvalley.com>
Signed-off-by: Lennert Buytenhek <buytenh@...vell.com>
Cc: stable@...nel.org
diff --git a/net/dsa/mv88e6xxx.c b/net/dsa/mv88e6xxx.c
index 4e4d8b5..efe661a 100644
--- a/net/dsa/mv88e6xxx.c
+++ b/net/dsa/mv88e6xxx.c
@@ -418,7 +418,7 @@ static int mv88e6xxx_stats_wait(struct dsa_switch *ds)
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;
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists