net: dsa: mv88e6xxx: Fix statistics on mv88e6161
commite7c4193e2a1d59afb622a83f605e7c4b58d0fa33
authorAndrew Lunn <andrew@lunn.ch>
Fri, 1 Mar 2019 22:43:39 +0000 (1 23:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:03:10 +0000 (13 14:03 -0700)
tree6183282a36f7a47203016e1af1769ed0326f2b89
parentb9e298f864a3f066914543213c9c5cff3fd69aa2
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