diff options
author | Victor Kamensky <victor.kamensky@linaro.org> | 2013-11-16 02:01:04 +0200 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2016-01-05 18:38:56 +0100 |
commit | d9702b17de9949c6f19bde790b40b86f3b02fdc9 (patch) | |
tree | a504507e57979bdea691531f0009a569a647d1fe /drivers/gpio/gpiolib-acpi.c | |
parent | e34dac5a89a0b35702690fb28d14e77882c26f8c (diff) | |
download | lwn-d9702b17de9949c6f19bde790b40b86f3b02fdc9.tar.gz lwn-d9702b17de9949c6f19bde790b40b86f3b02fdc9.zip |
gpio/omap: raw read and write endian fix
commit 661553b9c67c1c7496de5f603ee3d338ecad6850 upstream.
All OMAP IP blocks expect LE data, but CPU may operate in BE mode.
Need to use endian neutral functions to read/write h/w registers.
I.e instead of __raw_read[lw] and __raw_write[lw] functions code
need to use read[lw]_relaxed and write[lw]_relaxed functions.
If the first simply reads/writes register, the second will byteswap
it if host operates in BE mode.
Changes are trivial sed like replacement of __raw_xxx functions
with xxx_relaxed variant.
Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Kevin Hilman <khilman@linaro.org>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/gpio/gpiolib-acpi.c')
0 files changed, 0 insertions, 0 deletions