linux_dsm_epyc7002/drivers/net/dsa
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 net: dsa: b53: Fix statistics readings 2016-06-23 15:13:48 -04:00
bcm_sf2_regs.h net: dsa: bcm_sf2: Add VLAN registers definitions 2016-06-09 22:12:49 -07:00
bcm_sf2.c net: dsa: bcm_sf2: Add VLAN support 2016-06-09 22:12:49 -07:00
bcm_sf2.h net: dsa: bcm_sf2: Add VLAN support 2016-06-09 22:12:49 -07:00
Kconfig net: dsa: b53: Add support for Broadcom RoboSwitch 2016-06-09 22:21:29 -07:00
Makefile net: dsa: b53: Add support for Broadcom RoboSwitch 2016-06-09 22:21:29 -07:00
mv88e6xxx.c net: dsa: mv88e6xxx: abstract switch registers accesses 2016-06-21 03:58:30 -04:00
mv88e6xxx.h net: dsa: mv88e6xxx: abstract switch registers accesses 2016-06-21 03:58:30 -04:00
mv88e6060.c net: dsa: constify probed name 2016-04-17 18:54:14 -04:00
mv88e6060.h net: dsa: Keep the mii bus and address in the private structure 2016-04-13 18:15:23 -04:00