net: dsa: mv88e6xxx: Fix stats histogram mode
authorAndrew Lunn <andrew@lunn.ch>
Thu, 9 Nov 2017 23:36:41 +0000 (00:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 10:34:33 +0000 (19:34 +0900)
commit40cff8fca9e3a7f005a44d011141ec83501013be
tree7cfa336218be73fffd8d82f48dcf494f655557a6
parentc311db92af1f8407486065637c9703b99f910c20
net: dsa: mv88e6xxx: Fix stats histogram mode

The statistics histogram mode was not being explicitly initialized on
devices other than the 6390 family. Clearing the statistics then
overwrote the default setting, setting the histogram to a reserved
mode.

Explicitly set the histogram mode for all devices. Change the
statistics clear into a read/modify/write, and since it is now more
complex, move it into global1.c.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/global1.c
drivers/net/dsa/mv88e6xxx/global1.h