summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2018-11-11 00:41:10 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-23 08:17:06 +0100
commita043791f56147ab573ffcde7362edc01106dd639 (patch)
tree657a6dfa2f9987ee5d83414b4abb06cd088edc76 /include
parent0b4beb0d8c30240938592f90caefd481b4270613 (diff)
net: dsa: mv88e6xxx: Fix clearing of stats counters
[ Upstream commit a9049ff9214da68df1179a7d5e36b43479abc9b8 ] The mv88e6161 would sometime fail to probe with a timeout waiting for the switch to complete an operation. This operation is supposed to clear the statistics counters. However, due to a read/modify/write, without the needed mask, the operation actually carried out was more random, with invalid parameters, resulting in the switch not responding. We need to preserve the histogram mode bits, so apply a mask to keep them. Reported-by: Chris Healy <Chris.Healy@zii.aero> Fixes: 40cff8fca9e3 ("net: dsa: mv88e6xxx: Fix stats histogram mode") 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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions