net: dsa: mv88e6xxx: Fix statistics on mv88e6161
authorAndrew Lunn <andrew@lunn.ch>
Fri, 1 Mar 2019 22:43:39 +0000 (23:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Mar 2019 06:17:18 +0000 (07:17 +0100)
commit05d9f554b7136dca02e76218d79c694f8c5deab4
tree7ecb8d1ed20cdc10c758eee1c015f2998ef51d54
parentceb7c249869527f28e8caf6989b616740bd454e0
net: dsa: mv88e6xxx: Fix statistics on mv88e6161

[ Upstream commit a6da21bb0eae459a375d5bd48baed821d14301d0 ]

Despite what the datesheet says, the silicon implements the older way
of snapshoting the statistics. Change the op.

Reported-by: Chris.Healy@zii.aero
Tested-by: Chris.Healy@zii.aero
Fixes: 0ac64c394900 ("net: dsa: mv88e6xxx: mv88e6161 uses mv88e6320 stats snapshot")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/mv88e6xxx/chip.c