Skip to content

Commit

Permalink
dsa: fix 88e6xxx statistics counter snapshotting
Browse files Browse the repository at this point in the history
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>
Cc: stable@kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephane Contri authored and David S. Miller committed Jul 6, 2009
1 parent 78c29bd commit 1ded3f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/dsa/mv88e6xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1ded3f5

Please sign in to comment.