From: Florian Fainelli <f.faine...@gmail.com> Date: Mon, 20 Jun 2016 18:26:53 -0700
> 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 <j...@openwrt.org> > Signed-off-by: Florian Fainelli <f.faine...@gmail.com> Applied.