linux-stable/drivers/net/dsa
Arnd Bergmann 55e7f6abe1 dsa: b53: fix big-endian register access
The b53 dsa register access confusingly uses __raw register accessors
when both the CPU and the device are big-endian, but it uses little-
endian accessors when the same device is used from a little-endian
CPU, which makes no sense.

This uses normal accessors in device-endianess all the time, which
will work in all four combinations of register and CPU endianess,
and it will have the same barrier semantics in all cases.

This also seems to take care of a (false positive) warning I'm getting:

drivers/net/dsa/b53/b53_mmap.c: In function 'b53_mmap_read64':
drivers/net/dsa/b53/b53_mmap.c:109:10: error: 'hi' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  *val = ((u64)hi << 32) | lo;

I originally planned to submit another patch for that warning
and did this one as a preparation cleanup, but it does seem to be
sufficient by itself.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-06-16 17:15:28 -07:00
..
b53 dsa: b53: fix big-endian register access 2016-06-16 17:15:28 -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
bcm_sf2_regs.h net: dsa: bcm_sf2: Add VLAN registers definitions 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: Add new binding implementation 2016-06-04 14:29:55 -07:00
mv88e6xxx.h net: dsa: mv88e6xxx: Refactor MDIO so driver registers mdio bus 2016-06-04 14:29:54 -07: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