]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: bcm_sf2: fix 64-bits register reads
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 19 Feb 2015 19:09:27 +0000 (11:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Feb 2015 22:52:46 +0000 (17:52 -0500)
commit3ca9ec7e8f70dce9ed6d788434e9ca955d1e1aad
tree1a019786f29a1abc9105aae80cc8ffaf0375683a
parent4e7937a02081d647460617d2e762ead423372f7a
net: dsa: bcm_sf2: fix 64-bits register reads

Reading 64-bits register was not working because we inverted the steps
between reading the lower 32-bits of the register and reading the upper
32-bits. Swapping these operations is how the HW guarantees that 64-bits
reads are latched correctly. We only have a handful of 64-bits registers
for now, mostly MIB counters, so the imapct is low.

Fixes: fccc2cd9438e ("net: dsa: add Broadcom SF2 switch driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.h