net: dsa: mv88e6xxx: Fix stats counters for 6352 family
authorAndrew Lunn <andrew@lunn.ch>
Thu, 2 Apr 2015 02:06:40 +0000 (04:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 02:55:41 +0000 (22:55 -0400)
commitf3a8b6b6a155210dac1f2a6ec4eb1b9ad04219df
treea93f339b515180b48c0be95ceeb09ad5c3b407f0
parentcca8b1337541253f0414f744919c09f8b10bd962
net: dsa: mv88e6xxx: Fix stats counters for 6352 family

The statistic counters for the mv88e6172 never worked. This device is
a member of the 6352 family of chips, which has a slightly different
layout of the register used for capturing statistics. Add support for
detecting this family and poking the port in the right place in the
register.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c