summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-sun6i.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2016-06-21 03:26:53 +0200
committerDavid S. Miller <davem@davemloft.net>2016-06-23 21:13:48 +0200
commit51dca8a1cfd917e1b53b118ddd3fbe5eb1b6a9a8 (patch)
tree2de933dd95feadfca20a285db293816e49587fb2 /drivers/spi/spi-sun6i.c
parentof_mdio: Enable fixed PHY support if driver is a module (diff)
downloadlinux-51dca8a1cfd917e1b53b118ddd3fbe5eb1b6a9a8.tar.xz
linux-51dca8a1cfd917e1b53b118ddd3fbe5eb1b6a9a8.zip
net: dsa: b53: Fix statistics readings
Due to a typo we would always be using the MIB counter width of the first element of the counter array instead of the current element, and we would always be accessing the register statistics with a 64-bits read, while some could be 32-bits. This got unnoticed in testing with MDIO and SRAB which tolerate doing this, but testing with the SPI bus revealed bogus values being returned. Fix this by using the proper iterator here. Fixes: 967dd82ffc52 ("net: dsa: b53: Add support for Broadcom RoboSwitch") Reported-by: Jonas Gorski <jogo@openwrt.org> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/spi/spi-sun6i.c')
0 files changed, 0 insertions, 0 deletions