Re: [RFC 01/23] gpio/omap: raw read and write endian fix

2013-11-19 Thread Linus Walleij
On Sat, Nov 16, 2013 at 1:01 AM, Taras Kondratiuk taras.kondrat...@linaro.org wrote: From: Victor Kamensky victor.kamen...@linaro.org 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

Re: [RFC 01/23] gpio/omap: raw read and write endian fix

2013-11-19 Thread Tony Lindgren
* Linus Walleij linus.wall...@linaro.org [131119 01:29]: On Sat, Nov 16, 2013 at 1:01 AM, Taras Kondratiuk taras.kondrat...@linaro.org wrote: From: Victor Kamensky victor.kamen...@linaro.org All OMAP IP blocks expect LE data, but CPU may operate in BE mode. Need to use endian neutral

Re: [RFC 01/23] gpio/omap: raw read and write endian fix

2013-11-19 Thread Javier Martinez Canillas
On 11/19/2013 10:29 AM, Linus Walleij wrote: On Sat, Nov 16, 2013 at 1:01 AM, Taras Kondratiuk taras.kondrat...@linaro.org wrote: From: Victor Kamensky victor.kamen...@linaro.org All OMAP IP blocks expect LE data, but CPU may operate in BE mode. Need to use endian neutral functions to

Re: [RFC 01/23] gpio/omap: raw read and write endian fix

2013-11-19 Thread Kevin Hilman
Linus Walleij linus.wall...@linaro.org writes: On Sat, Nov 16, 2013 at 1:01 AM, Taras Kondratiuk taras.kondrat...@linaro.org wrote: From: Victor Kamensky victor.kamen...@linaro.org All OMAP IP blocks expect LE data, but CPU may operate in BE mode. Need to use endian neutral functions to

Re: [RFC 01/23] gpio/omap: raw read and write endian fix

2013-11-19 Thread Santosh Shilimkar
On Friday 15 November 2013 07:01 PM, Taras Kondratiuk wrote: From: Victor Kamensky victor.kamen...@linaro.org 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]

[RFC 01/23] gpio/omap: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
From: Victor Kamensky victor.kamen...@linaro.org 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