]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7714b8967519660de6d67a9476f9cde2f5fb23b9
tree7cfa336218be73fffd8d82f48dcf494f655557a6
parent4e474840e4a2a50ca9afd6e85ac8098a88c8a674
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