diff options
author | Victor Kamensky <victor.kamensky@linaro.org> | 2013-11-16 02:01:04 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-11-25 09:03:39 +0100 |
commit | 661553b9c67c1c7496de5f603ee3d338ecad6850 (patch) | |
tree | f54ca4d214ef2b1b06315c514422e31ae8d2c544 /include/linux/tc.h | |
parent | 4edd7901eee13f878e7b5fd5efba610e70b09313 (diff) |
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>
Diffstat (limited to 'include/linux/tc.h')
0 files changed, 0 insertions, 0 deletions