linux/drivers/net/dsa/b53
Florian Fainelli 51dca8a1cf 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: 967dd82ffc ("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>
2016-06-23 15:13:48 -04:00
..
b53_common.c net: dsa: b53: Fix statistics readings 2016-06-23 15:13:48 -04:00
b53_mdio.c
b53_mmap.c dsa: b53: fix big-endian register access 2016-06-16 17:15:28 -07:00
b53_priv.h net: dsa: b53: Plug in VLAN support 2016-06-09 22:21:29 -07:00
b53_regs.h net: dsa: b53: Add bridge support 2016-06-09 22:21:29 -07:00
b53_spi.c
b53_srab.c
Kconfig
Makefile