[RESEND PATCH 2/4] ARM: OMAP: dmtimer: raw read and write endian fix

2014-04-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- arch/arm/plat-omap/dmtimer.c |8

[RESEND PATCH 3/4] ARM: OMAP: counter-32k: raw read and write endian fix

2014-04-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- arch/arm/plat-omap/counter_32k.c |6 +++--- 1

[RESEND PATCH 4/4] ARM: OMAP: debug-leds: raw read and write endian fix

2014-04-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- arch/arm/plat-omap/debug-leds.c | 14

[RESEND PATCH 1/4] ARM: OMAP2+: raw read and write endian fix

2014-04-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- arch/arm/mach-omap2/board-flash.c |4

[RESEND PATCH 0/4] ARM: OMAP: raw read and write endian fix

2014-04-15 Thread Taras Kondratiuk
This series does trivial replacement of __raw_xxx functions with xxx_relaxed endian-neutral variants in 'mach-omap2' and 'plat-omap' directories. Some code here most probably won't be used in BE mode (like debug-leds for OMAP1 boards), but changes are made anyway to remove __raw_xxx() functions com

Re: [PATCH 0/4] ARM: OMAP: raw read and write endian fix

2014-04-02 Thread Taras Kondratiuk
On 03/26/2014 12:35 PM, Taras Kondratiuk wrote: > On 01/08/2014 02:39 AM, Tony Lindgren wrote: >> * Taras Kondratiuk [131223 10:20]: >>> On 23 December 2013 20:10, Taras Kondratiuk >>> wrote: >>>> This series does trivial replacement of __raw_xxx funct

Re: [PATCH 0/4] ARM: OMAP: raw read and write endian fix

2014-03-26 Thread Taras Kondratiuk
On 01/08/2014 02:39 AM, Tony Lindgren wrote: > * Taras Kondratiuk [131223 10:20]: >> On 23 December 2013 20:10, Taras Kondratiuk >> wrote: >>> This series does trivial replacement of __raw_xxx functions with xxx_relaxed >>> endian-neutral variants in 'm

Re: [PATCH] ARM: OMAP4: sleep: byteswap data for big-endian

2014-01-14 Thread Taras Kondratiuk
but I don't see a point to spend time for a generic solution for a single user. If there will be other platforms which need similar changes, then we can think of some generic solution. Let's drop this patch for now. We can just disable CPUidle for BE tasks or keep this patch forked. [1]

Re: [PATCH] ARM: OMAP4: sleep: byteswap data for big-endian

2014-01-14 Thread Taras Kondratiuk
On 13 January 2014 17:23, Nishanth Menon wrote: > On 01/13/2014 09:03 AM, Taras Kondratiuk wrote: >> From: Victor Kamensky >> >> Assembler functions defined in sleep44xx.S need to byteswap values >> after read / before write from h/w register if code compiled in big &g

[PATCH] ARM: OMAP4: sleep/smp: switch CPU to BE if compiled for BE

2014-01-13 Thread Taras Kondratiuk
we need to do it earlier because OMAP's secondary_startup code works with BE data. Signed-off-by: Victor Kamensky Signed-off-by: Taras Kondratiuk --- This is a part of RFC series [1]. Based on v3.13-rc8. [1] http://www.spinics.net/lists/linux-omap/msg99927.html arch/arm/mach-omap2

[PATCH] ARM: OMAP4: sleep: byteswap data for big-endian

2014-01-13 Thread Taras Kondratiuk
ned-off-by: Victor Kamensky Signed-off-by: Taras Kondratiuk --- This is a part of RFC series [1]. Based on v3.13-rc8. [1] http://www.spinics.net/lists/linux-omap/msg99927.html arch/arm/mach-omap2/sleep44xx.S | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/

Re: [PATCH 0/4] ARM: OMAP: raw read and write endian fix

2013-12-23 Thread Taras Kondratiuk
On 23 December 2013 20:10, Taras Kondratiuk wrote: > This series does trivial replacement of __raw_xxx functions with xxx_relaxed > endian-neutral variants in 'mach-omap2' and 'plat-omap' directories. > Some code here most probably won't be used in BE mode (

[PATCH 3/4] ARM: OMAP: counter-32k: raw read and write endian fix

2013-12-23 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- arch/arm/plat-omap/counter_32k.c |6 +++--- 1

[PATCH 2/4] ARM: OMAP: dmtimer: raw read and write endian fix

2013-12-23 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- arch/arm/plat-omap/dmtimer.c |8

[PATCH 4/4] ARM: OMAP: debug-leds: raw read and write endian fix

2013-12-23 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- arch/arm/plat-omap/debug-leds.c | 14

[PATCH 1/4] ARM: OMAP2+: raw read and write endian fix

2013-12-23 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- arch/arm/mach-omap2/board-flash.c |4

[PATCH v2] ARM: OMAP4/highbank: Flush L2 cache before disabling

2013-11-27 Thread Taras Kondratiuk
latforms. This patch adds cache flush inside of OMAP4 and Highbank outer_cache.disable() handlers to make it consistent with default l2x0_disable(). Acked-by: Rob Herring Acked-by: Santosh Shilimkar Acked-by: Tony Lindgren Signed-off-by: Taras Kondratiuk --- I was not aware about Russell&

[PATCH] i2c: omap: raw read and write endian fix

2013-11-27 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- Posting this as a saparate patch out of RFC series

[RFC 03/23] OMAPDSS: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/video/omap2/dss/dispc.c |4

[RFC 10/23] Input: omap-keypad - raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/input/keyboard/omap4-keypad.c | 10

[RFC 07/23] hwrng: omap - raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/char/hw_random/omap-rng.c |4 ++-- 1

[RFC 08/23] crypto: omap-aes - raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/crypto/omap-aes.c |8 1 file

[RFC 13/23] spi: omap2-mcspi: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/spi/spi-omap2-mcspi.c | 38

[RFC 04/23] mmc: omap: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/mmc/host/omap.c |4 ++-- drivers

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

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/gpio/gpio-omap.c | 188

[RFC 19/23] ARM: OMAP: counter-32k: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- arch/arm/plat-omap/counter_32k.c |6 +++--- 1

[RFC 09/23] crypto: omap-sham - raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/crypto/omap-sham.c |4 ++-- 1 file

[RFC 11/23] mfd: omap-usb-host: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/mfd/omap-usb-host.c |8 1 file

[RFC 12/23] mfd: omap-usb-tll: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/mfd/omap-usb-tll.c |8 1 file

[RFC 14/23] USB: ehci-omap: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/usb/host/ehci-omap.c |4 ++-- 1 file

[RFC 20/23] ARM: OMAP: debug-leds: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- arch/arm/plat-omap/debug-leds.c | 14

[RFC 17/23] ARM: OMAP2+: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- arch/arm/mach-omap2/board-flash.c |4

[RFC 23/23] ARM: OMAP4: enable big endian support

2013-11-15 Thread Taras Kondratiuk
From: Victor Kamensky Previous patches fixed big endian issues in OMAP4 code, so mark it as one that supports big endian Signed-off-by: Victor Kamensky Signed-off-by: Taras Kondratiuk --- arch/arm/mach-omap2/Kconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2

[RFC 21/23] ARM: OMAP4: sleep: byteswap data for big-endian

2013-11-15 Thread Taras Kondratiuk
ned-off-by: Victor Kamensky Signed-off-by: Taras Kondratiuk --- arch/arm/mach-omap2/sleep44xx.S | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/mach-omap2/sleep44xx.S b/arch/arm/mach-omap2/sleep44xx.S index 9086ce0..8017016 100644 --- a/arch/arm/mach-omap2/sleep44

[RFC 16/23] ASoC: omap: mcbsp, mcpdm, dmic: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- sound/soc/omap/mcbsp.c | 12

[RFC 06/23] drivers: bus: omap_l3: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/bus/omap_l3_noc.c |8 1 file

[RFC 18/23] ARM: OMAP: dmtimer: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- arch/arm/plat-omap/dmtimer.c |8

[RFC 02/23] watchdog: omap_wdt: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/watchdog/omap_wdt.c | 36

[RFC 22/23] ARM: OMAP4: sleep/smp: switch CPU to BE if compiled for BE

2013-11-15 Thread Taras Kondratiuk
we need to do it earlier because OMAP's secondary_startup code works with BE data. Signed-off-by: Victor Kamensky Signed-off-by: Taras Kondratiuk --- arch/arm/mach-omap2/omap-headsmp.S | 13 + arch/arm/mach-omap2/sleep44xx.S|6 ++ 2 files changed, 19 insertions(+)

[RFC 00/23] OMAP4: big endian support and fixes

2013-11-15 Thread Taras Kondratiuk
This series is a split up of Victor's initial BE series for Pandaboard. The first 20 patches are trivial replacement of __raw_xxx functions with xxx_relaxed endian neutral variant. Patches #1-#16 covers OMAP drivers in 'drivers' and 'sound' directories. Patch #17 covers 'mach-omap2' directory. Ini

[RFC 15/23] usb: musb: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/usb/musb/musb_io.h | 18

[RFC 05/23] i2c: omap: raw read and write endian fix

2013-11-15 Thread Taras Kondratiuk
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 Signed-off-by: Taras Kondratiuk --- drivers/i2c/busses/i2c-omap.c |6 +++--- 1 file

Re: [PATCH v2] ARM: OMAP4460: cpuidle: Extend PM_OMAP4_ROM_SMP_BOOT_ERRATUM_GICD on cpuidle

2013-11-15 Thread Taras Kondratiuk
;>> After MPUSS has enterred OSWR and waken up: >>> - GIC distributor became disabled forever >>> - scheduling is not performed any more >>> >>> Cc: Kevin Hilman >>> Acked-by: Santosh Shilimkar >>> Reported-by: Taras Kondratiuk >>>

[PATCH] i2c: omap: Clear ARDY bit twice

2013-10-07 Thread Taras Kondratiuk
d missed one of ARDY clearings. So current code violates errata. It causes often i2c bus timeouts on my Pandaboard. This patch adds a second clearing in place. Signed-off-by: Grygorii Strashko Signed-off-by: Taras Kondratiuk --- Cc: Felipe Balbi Cc: Richard woodruff Cc: Tony Lindgren Cc: Wol

[PATCH] ARM: OMAP4/highbank: Flush L2 cache before disabling

2013-10-07 Thread Taras Kondratiuk
latforms. This patch adds cache flush inside of OMAP4 and Highbank outer_cache.disable() handlers to make it consistent with default l2x0_disable(). Also it removes redundant outer_flush_all() call just before outer_disable(). Acked-by: Rob Herring Acked-by: Santosh Shilimkar Signed-off-by: T

[RFC PATCH v2] ARM: OMAP4/highbank: Flush L2 cache before disabling

2013-10-04 Thread Taras Kondratiuk
latforms. This patch adds cache flush inside of OMAP4 and Highbank outer_cache.disable() handlers to make it consistent with default l2x0_disable(). Also it removes redundant outer_flush_all() call just before outer_disable(). Signed-off-by: Taras Kondratiuk --- v2: Make the fix specific to platf

[PATCH v2] mfd: twl6030: Fix endianness problem in IRQ handler

2013-10-03 Thread Taras Kondratiuk
From: Danke Xie The current TWL 6030 IRQ handler assumes little endianness. This change makes it endian-neutral. Signed-off-by: Danke Xie Signed-off-by: Taras Kondratiuk --- v2: fixed sparse warning v1: https://patchwork.kernel.org/patch/2974331/ drivers/mfd/twl6030-irq.c |8 +--- 1

Re: [RFC PATCH] ARM: Flush L2 cache on soft_restart

2013-10-03 Thread Taras Kondratiuk
On 2 October 2013 20:31, Will Deacon wrote: > On Wed, Oct 02, 2013 at 06:19:30PM +0100, Taras Kondratiuk wrote: >> On 2 October 2013 15:49, Will Deacon wrote: >> > On Wed, Oct 02, 2013 at 12:34:16PM +0100, Taras Kondratiuk wrote: >> >> diff --git a/arch/arm/kern

Re: [LNG] [PATCH] mfd: twl6030: Fix endianness problem in IRQ handler

2013-10-02 Thread Taras Kondratiuk
On 2 October 2013 19:43, Kim Phillips wrote: > On Wed, 2 Oct 2013 14:08:44 +0300 > Taras Kondratiuk wrote: > >> From: Danke Xie >> >> The current TWL 6030 IRQ handler assumes little endianness. >> This change makes it endian-neutral. >> >> Sign

32-bit access to 16-bit register on L4_PER

2013-10-02 Thread Taras Kondratiuk
Recent commit 76bac1987ca181d54f8c9456d20997cb1020af2d "OMAP: UART: Fix the revision register read" changed UART_MVR 16-bit read to 32-bit. But pre-OMAP4 devices have 16-bit MVR register. Is it safe to assume that 32-bit access will return 0's in upper 16-bits in this case? --

[PATCH] mfd: twl6030: Fix endianness problem in IRQ handler

2013-10-02 Thread Taras Kondratiuk
From: Danke Xie The current TWL 6030 IRQ handler assumes little endianness. This change makes it endian-neutral. Signed-off-by: Danke Xie Signed-off-by: Taras Kondratiuk --- drivers/mfd/twl6030-irq.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mfd

[RFC PATCH] i2c: omap: Clear ARDY bit twice

2013-10-02 Thread Taras Kondratiuk
d missed one of ARDY clearings. So current code violates errata. It causes often i2c bus timeouts on my Pandaboard. This patch adds a second clearing in place. Signed-off-by: Taras Kondratiuk --- drivers/i2c/busses/i2c-omap.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/i2c

Re: [RFC PATCH 0/2] cpufreq/regulator: Limit minimum voltage only

2013-04-22 Thread Taras Kondratiuk
On 04/22/2013 09:11 AM, Bedia, Vaibhav wrote: (removing Anil's email-id since it's no longer valid) On Sat, Apr 20, 2013 at 05:54:10, Kondratiuk, Taras wrote: On 04/19/2013 07:21 PM, Nishanth Menon wrote: On 14:55-20130419, Taras Kondratiuk wrote: Using a "voltage tolerance&