Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dsa: fix 88e6xxx statistics counter snapshotting

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>

authored by

Stephane Contri and committed by
David S. Miller
1ded3f59 78c29bd9

+1 -1
+1 -1
net/dsa/mv88e6xxx.c
··· 418 418 int i; 419 419 420 420 for (i = 0; i < 10; i++) { 421 - ret = REG_READ(REG_GLOBAL2, 0x1d); 421 + ret = REG_READ(REG_GLOBAL, 0x1d); 422 422 if ((ret & 0x8000) == 0) 423 423 return 0; 424 424 }