net: dsa: mv88e6xxx: Fix statistics on mv88e6161
authorAndrew Lunn <andrew@lunn.ch>
Fri, 1 Mar 2019 22:43:39 +0000 (23:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Mar 2019 08:45:04 +0000 (00:45 -0800)
commita6da21bb0eae459a375d5bd48baed821d14301d0
tree4a5cb052a3ce10df99bfd0db91a879402bdc004f
parentcf1c9ccba7308e48a68fa77f476287d9d614e4c7
net: dsa: mv88e6xxx: Fix statistics on mv88e6161

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>
drivers/net/dsa/mv88e6xxx/chip.c