net: dsa: mv88e6xxx: Add missing mask of ATU occupancy register
authorAndrew Lunn <andrew@lunn.ch>
Wed, 11 Mar 2020 20:02:31 +0000 (21:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:19:06 +0000 (07:19 +0100)
commit36afe8b14e893f800e5d138263308e48a1e14e44
treefd33205497f593ef5b20b21209f64e1bdb075a46
parent833110c7d72b45f7071d58efbb61f0314ba5ff07
net: dsa: mv88e6xxx: Add missing mask of ATU occupancy register

[ Upstream commit 012fc74517b25177dfede2ed45cd108258564e4a ]

Only the bottom 12 bits contain the ATU bin occupancy statistics. The
upper bits need masking off.

Fixes: e0c69ca7dfbb ("net: dsa: mv88e6xxx: Add ATU occupancy via devlink resources")
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