gpio/omap: raw read and write endian fix
authorVictor Kamensky <victor.kamensky@linaro.org>
Sat, 16 Nov 2013 00:01:04 +0000 (02:01 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 25 Nov 2013 08:03:39 +0000 (09:03 +0100)
commit661553b9c67c1c7496de5f603ee3d338ecad6850
treef54ca4d214ef2b1b06315c514422e31ae8d2c544
parent4edd7901eee13f878e7b5fd5efba610e70b09313
gpio/omap: raw read and write endian fix

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>
drivers/gpio/gpio-omap.c
This page took 0.026377 seconds and 5 git commands to generate.