diff options
author | Victor Kamensky <victor.kamensky@linaro.org> | 2013-11-16 01:01:05 +0100 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2013-11-17 19:42:38 +0100 |
commit | 4a7e94a0637da7e1ddce748da49ae780c370eeef (patch) | |
tree | 561c2e0628f2d4851593e57bb48f45facb7b2a70 /drivers/watchdog/w83627hf_wdt.c | |
parent | watchdog: sirf: don't depend on dummy value of CLOCK_TICK_RATE (diff) | |
download | linux-4a7e94a0637da7e1ddce748da49ae780c370eeef.tar.xz linux-4a7e94a0637da7e1ddce748da49ae780c370eeef.zip |
watchdog: omap_wdt: 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: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions