diff options
author | Lada Trimasova <[email protected]> | 2016-03-09 20:21:04 +0300 |
---|---|---|
committer | Vineet Gupta <[email protected]> | 2016-03-12 09:46:45 +0530 |
commit | f778cc65717687a3d3f26dd21bef62cd059f1b8b (patch) | |
tree | 4d9b76da88c87230de4a2053f38ec756bf0f3929 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 2d746eeb4f70e3602dea0aec174072adc0ab8ce5 (diff) |
ARC: [BE] readl()/writel() to work in Big Endian CPU configuration
read{l,w}() write{l,w}() primitives should use le{16,32}_to_cpu() and
cpu_to_le{16,32}() respectively to ensure device registers are read
correctly in Big Endian CPU configuration.
Per Arnd Bergmann
| Most drivers using readl() or readl_relaxed() expect those to perform byte
| swaps on big-endian architectures, as the registers tend to be fixed endian
This was needed for getting UART to work correctly on a Big Endian ARC.
The ARC accessors originally were fine, and the bug got introduced
inadventently by commit b8a033023994 ("ARCv2: barriers")
Fixes: b8a033023994 ("ARCv2: barriers")
Link: http://lkml.kernel.org/r/[email protected]
Cc: Alexey Brodkin <[email protected]>
Cc: [email protected] [4.2+]
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Lada Trimasova <[email protected]>
[vgupta: beefed up changelog, added Fixes/stable tags]
Signed-off-by: Vineet Gupta <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions