[PATCH] arm: mach-omap2: voltage: debugfs: fix memory leak

2011-01-28 Thread Aaro Koskinen
The temporary string holding the directory name to be created should be released. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/voltage.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2

[PATCH 1/7] arm: plat-omap: dma: make omap_dma_in_1510_mode() static

2011-01-18 Thread Aaro Koskinen
Eliminates the following sparse warning: arch/arm/plat-omap/dma.c:137:5: warning: symbol 'omap_dma_in_1510_mode' was not declared. Should it be static? Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi --- arch/arm/plat-omap/dma.c |2 +- 1 files changed, 1 insertions(+), 1

Re: Open issues after 2.6.38 merge window

2011-01-17 Thread Aaro Koskinen
Hi, On Fri, 14 Jan 2011, Tony Lindgren wrote: Before I update out master branch, let's try to summarize the open issues after the merge window. Here's a list of issues in omap-fixes-for-linus that I'm aware of: - NFS root oopses while mounting root - omap4430 es1.0 hangs if L2X0 cache is

RE: Open issues after 2.6.38 merge window

2011-01-17 Thread Aaro Koskinen
Hi, On Mon, 17 Jan 2011, Santosh Shilimkar wrote: Amstrad E3 fails during the boot. Bisection points to: commit 211baa7016894c02fc18693e21ca479cd08ac0c0 Author: Russell King rmk+ker...@arm.linux.org.uk Date: Tue Jan 11 16:23:04 2011 + ARM:

[PATCH 2/7] arm: mach-omap1: board-h2: make h2_nand_platdata static

2011-01-17 Thread Aaro Koskinen
Eliminates the following sparse warning: arch/arm/mach-omap1/board-h2.c:205:27: warning: symbol 'h2_nand_platdata' was not declared. Should it be static? Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi --- arch/arm/mach-omap1/board-h2.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCH 0/7] omap1 sparse warning fixes

2011-01-17 Thread Aaro Koskinen
Here's some trivial omap1 sparse warning fixes. Aaro Koskinen (7): arm: plat-omap: dma: make omap_dma_in_1510_mode() static arm: mach-omap1: board-h2: make h2_nand_platdata static arm: mach-omap1: board-innovator: make innovator_mmc_init() static arm: mach-omap1: board-htcherald: make

[PATCH 4/7] arm: mach-omap1: board-htcherald: make htcpld_chips and htcpld_pfdata static

2011-01-17 Thread Aaro Koskinen
? Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi --- arch/arm/mach-omap1/board-htcherald.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap1/board-htcherald.c b/arch/arm/mach-omap1/board-htcherald.c index f2c5c58..ba05a51 100644 --- a/arch/arm/mach-omap1

[PATCH 7/7] arm: mach-omap1: board-voiceblue: add missing include

2011-01-17 Thread Aaro Koskinen
it be static? arch/arm/mach-omap1/board-voiceblue.c:269:6: warning: symbol 'voiceblue_wdt_ping' was not declared. Should it be static? arch/arm/mach-omap1/board-voiceblue.c:278:6: warning: symbol 'voiceblue_reset' was not declared. Should it be static? Signed-off-by: Aaro Koskinen

[PATCH 3/7] arm: mach-omap1: board-innovator: make innovator_mmc_init() static

2011-01-17 Thread Aaro Koskinen
Eliminates the following sparse warning: arch/arm/mach-omap1/board-innovator.c:368:13: warning: symbol 'innovator_mmc_init' was not declared. Should it be static? Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi --- arch/arm/mach-omap1/board-innovator.c |2 +- 1 files changed, 1

[PATCH 6/7] arm: plat-omap: system.h: move voiceblue definitions into the board header

2011-01-17 Thread Aaro Koskinen
Move voiceblue definitions into the board-specific header. Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi --- arch/arm/plat-omap/include/plat/board-voiceblue.h |6 ++ arch/arm/plat-omap/include/plat/system.h |7 +-- 2 files changed, 7 insertions(+), 6 deletions

[PATCH 5/7] arm: mach-omap1: board-h3: make nand_platdata static

2011-01-17 Thread Aaro Koskinen
Eliminates the following sparse warning: arch/arm/mach-omap1/board-h3.c:207:27: warning: symbol 'nand_platdata' was not declared. Should it be static? Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi --- arch/arm/mach-omap1/board-h3.c |2 +- 1 files changed, 1 insertions(+), 1

Re: [PATCH v4 1/3] omap3: beaglexm: fix EHCI power up GPIO dir

2011-01-10 Thread Aaro Koskinen
Hi, On Fri, 7 Jan 2011, Nishanth Menon wrote: From: Koen Kooi k...@beagleboard.org EHCI enable power pin is inverted (active high) in comparison to vanilla beagle which is active low. Handle this case conditionally. Without this fix, Beagle XM 4 port EHCI will not function and no networking

Re: [PATCH v4 3/3] omap3: beaglexm: fix power on of DVI

2011-01-10 Thread Aaro Koskinen
Hi, On Fri, 7 Jan 2011, Nishanth Menon wrote: From: Koen Kooi k...@beagleboard.org TFP410 DVI chip is used to provide display out. This chip is controlled by 2 lines: LDO which supplies the power is controlled over gpio + 2 and the enable of the chip itself is done over gpio + 1 NOTE: the LDO

[PATCH] arm: mach-omap2: mux: fix buffer overrun

2011-01-05 Thread Aaro Koskinen
memcpy() copies 8 bytes too much (omap_mux_entry vs. omap_mux). Correct by replacing memcpy() with struct assignment, which is safer. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/mux.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch

Re: I2C Touchscreen OMAP OOPS

2011-01-04 Thread Aaro Koskinen
Hi, On Tue, 4 Jan 2011, David Lynch Jr. wrote: For reference the mcs5000 driver as well as an st1232 driver that was in the linux input patch stream perform I2C xfers in an interrupt context. They are using threaded IRQ handlers, which might be the solution you are looking for. A. --

[PATCH] arm: mach-omap2: pm: cleanup !CONFIG_SUSPEND handling

2010-12-29 Thread Aaro Koskinen
Make !CONFIG_SUSPEND init declarations identical on all OMAPs and eliminate some ifdefs. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/pm.h |4 arch/arm/mach-omap2/pm24xx.c | 16 arch/arm/mach-omap2/pm34xx.c | 16

Re: [PATCH 1/6] Add infrastructure for conditional code and data sections

2010-12-23 Thread Aaro Koskinen
Hi, On Wed, 22 Dec 2010, Tony Lindgren wrote: * Thomas Petazzoni thomas.petazz...@free-electrons.com [101221 14:00]: On Tue, 21 Dec 2010 11:27:35 -0800 Tony Lindgren t...@atomide.com wrote: Therefore, we introduce an infrastructure that allows to put code and data into specific sections,

Re: [PATCH v3] Keyboard: omap-keypad: use matrix_keypad.h

2010-12-21 Thread Aaro Koskinen
. Created against linux-2.6.37-rc5. Tested on Amstrad Delta. Compile tested with omap1_defconfig and omap2plus_defconfig shrinked to board-h4. Signed-off-by: Janusz Krzysztofik jkrzy...@tis.icnet.pl Reviewed-by: Aaro Koskinen aaro.koski...@nokia.com --- v2 - v3 changes: - update all board's keymap

Re: [PATCH v2] Keyboard: omap-keypad: use matrix_keypad.h

2010-12-20 Thread Aaro Koskinen
Hello, On Sat, 18 Dec 2010, Janusz Krzysztofik wrote: Most keypad drivers make use of the linux/input/matrix_keypad.h defined macros, structures and inline functions. Convert omap-keypad driver to use those as well, as suggested by a compile time warning, hardcoded into the OMAP palt/keypad.h.

Re: [PATCH 2/2] arm: mach-omap2: Kconfig: devkit8000 should select needed options

2010-12-17 Thread Aaro Koskinen
Hi, On Wed, 15 Dec 2010, Tony Lindgren wrote: * Aaro Koskinen aaro.koski...@nokia.com [101215 04:48]: It's not possible to compile a kernel for this board without I2C, MFD_SUPPORT and TWL4030_CORE, so those should be selected. This will prevent build errors when trying out different

[PATCH 1/2] arm: mach-omap2: Kconfig: fix incorrect option

2010-12-15 Thread Aaro Koskinen
There is no MFD config option, MFD_SUPPORT should be selected instead. This will prevent build errors when trying out different configurations. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCH 2/2] arm: mach-omap2: Kconfig: devkit8000 should select needed options

2010-12-15 Thread Aaro Koskinen
It's not possible to compile a kernel for this board without I2C, MFD_SUPPORT and TWL4030_CORE, so those should be selected. This will prevent build errors when trying out different configurations. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/Kconfig |4

[PATCH 0/8] arm: omap: add support for RM-680

2010-12-09 Thread Aaro Koskinen
to compile. These are based on top of linux-omap/master (92f446c47b18827e61483787668b0bb5f7a033b6). ... Aaro Koskinen (8): arm: omap: rename board-rx51-sdram.c to sdram-nokia.c arm: omap: add sdram-nokia.h arm: omap: sdram-nokia: prepare for new memory timings arm: omap: sdram-nokia: use

[PATCH 2/8] arm: omap: add sdram-nokia.h

2010-12-09 Thread Aaro Koskinen
Add a header file for Nokia SDRAM functions. Based on patches by Juha Keski-Saari. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/board-rx51.c |2 +- arch/arm/mach-omap2/sdram-nokia.c |1 + arch/arm/mach-omap2/sdram-nokia.h | 12 3 files

[PATCH 1/8] arm: omap: rename board-rx51-sdram.c to sdram-nokia.c

2010-12-09 Thread Aaro Koskinen
Rename the file and functions so that it can be reused by future Nokia boards. Based on patches by Juha Keski-Saari. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/Makefile |2 +- arch/arm/mach-omap2/board-rx51.c |4

[PATCH 3/8] arm: omap: sdram-nokia: prepare for new memory timings

2010-12-09 Thread Aaro Koskinen
Rename the current timings to indicate they're for 166 MHz. Based on patches by Eduardo Valentin and Juha Keski-Saari. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com Cc: Eduardo Valentin eduardo.valen...@nokia.com --- arch/arm/mach-omap2/sdram-nokia.c | 11 ++- 1 files changed, 6

[PATCH 4/8] arm: omap: sdram-nokia: use array to list timings

2010-12-09 Thread Aaro Koskinen
Use an array to make it easier to add new values. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/sdram-nokia.c | 21 +++-- 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-omap2/sdram-nokia.c b/arch/arm/mach-omap2

[PATCH 5/8] arm: omap: sdram-nokia: improve error handling

2010-12-09 Thread Aaro Koskinen
Actually check for errors: print an error log and return NULL. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/sdram-nokia.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/sdram-nokia.c b/arch/arm/mach-omap2/sdram

[PATCH 6/8] arm: omap: sdram-nokia: delete redundant timing data

2010-12-09 Thread Aaro Koskinen
41.5 MHz SDRAM clock is not usable. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/sdram-nokia.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/sdram-nokia.c b/arch/arm/mach-omap2/sdram-nokia.c index 863586b..baf83ec

[PATCH 7/8] arm: omap: sdram-nokia: add 97.6/195.2 MHz timing data

2010-12-09 Thread Aaro Koskinen
Introduce 97.6/195.2 MHz memory timing data. Based on patches by Eduardo Valentin, Igor Dmitriev and Juha Keski-Saari. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com Cc: Eduardo Valentin eduardo.valen...@nokia.com Cc: Igor Dmitriev ext-dmitriev.i...@nokia.com --- arch/arm/mach-omap2/sdram

[PATCH 8/8] arm: omap: add minimal support for RM-680

2010-12-09 Thread Aaro Koskinen
Add minimal support for Nokia RM-680 board. Tested with omap2plus_defconfig. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/Kconfig |6 + arch/arm/mach-omap2/Makefile |3 + arch/arm/mach-omap2/board-rm680.c| 187

[PATCH v2] arm: mach-omap2: remove NULL board_mux from board files

2010-12-02 Thread Aaro Koskinen
If CONFIG_OMAP_MUX is not enabled, we can define board_mux in the header file instead of forcing every single board to define it. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- v2: Use a static variable to avoid namespace pollution. arch/arm/mach-omap2/board-2430sdp.c|2

Re: [PATCH v2] arm: mach-omap2: remove NULL board_mux from board files

2010-12-02 Thread Aaro Koskinen
Hi, On Thu, 2 Dec 2010, Felipe Balbi wrote: On Thu, Dec 02, 2010 at 11:53:42AM +0200, Aaro Koskinen wrote: diff --git a/arch/arm/mach-omap2/mux.h b/arch/arm/mach-omap2/mux.h index 350c04f..e224ab5 100644 --- a/arch/arm/mach-omap2/mux.h +++ b/arch/arm/mach-omap2/mux.h @@ -133,6 +133,8 @@ static

[PATCH v3] arm: mach-omap2: remove NULL board_mux from board files

2010-12-02 Thread Aaro Koskinen
If CONFIG_OMAP_MUX is not enabled, we can define board_mux in the header file instead of forcing every single board to define it. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- v3: Use __maybe_unused instead of compiler-specific attribute. v2: Use a static variable to avoid namespace

[PATCH 1/2] arm: mach-omap2: n8x0: clean up dummy onenand init

2010-12-02 Thread Aaro Koskinen
When OneNAND support is disabled, the platform code defines NULL board_onenand_data and empty init function for us. By utilizing this we can avoid cluttering board files with dummy definitions/wrappers. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/board-n8x0.c

[PATCH 2/2] arm: mach-omap2: rx51: clean up dummy onenand init

2010-12-02 Thread Aaro Koskinen
When OneNAND support is disabled, the platform code defines NULL board_onenand_data and empty init function for us. By utilizing this we can avoid cluttering board files with dummy definitions/wrappers. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/board-rx51

[PATCH] arm: mach-omap2: remove NULL board_mux from board files

2010-12-01 Thread Aaro Koskinen
If CONFIG_OMAP_MUX is not enabled, we can define board_mux in the header file instead of forcing every single board to define it. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/board-2430sdp.c|2 -- arch/arm/mach-omap2/board-3430sdp.c|2

[PATCH] arm: omap2: io: fix clk_get() error check

2010-11-30 Thread Aaro Koskinen
clk_get() return value should be checked with IS_ERR(). Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/io.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 40562dd..a1939b1 100644

[PATCH] arm: omap1: make some functions static

2010-11-18 Thread Aaro Koskinen
it be static? arch/arm/plat-omap/dma.c:177:5: warning: symbol 'omap_dma_in_1510_mode' was not declared. Should it be static? arch/arm/plat-omap/sram.c:273:12: warning: symbol 'omap1_sram_init' was not declared. Should it be static? Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com

[PATCH] arm: omap1: mbox: delete unused variable

2010-11-18 Thread Aaro Koskinen
Delete unused variable from probe(). Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap1/mailbox.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap1/mailbox.c b/arch/arm/mach-omap1/mailbox.c index 12d6880..c0e1f48 100644

[PATCH] arm: omap1: mbox: make variables static

2010-11-18 Thread Aaro Koskinen
it be static? Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap1/mailbox.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap1/mailbox.c b/arch/arm/mach-omap1/mailbox.c index 1a85a42..12d6880 100644 --- a/arch/arm/mach-omap1/mailbox.c

[PATCH] arm: omap2: timer-gp: delete unused variable

2010-11-18 Thread Aaro Koskinen
Delete a redundant local variable. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/timer-gp.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/timer-gp.c b/arch/arm/mach-omap2/timer-gp.c index e13c29e..f9052e1 100644

[PATCH] arm: omap1: board-ams-delta: fix cast

2010-11-18 Thread Aaro Koskinen
/mach-omap1/board-ams-delta.c:319:36:got void *noident Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap1/board-ams-delta.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams

[PATCH 0/6] OMAP cleanups

2010-11-18 Thread Aaro Koskinen
Some small OMAP cleanups to eliminate noise from compilation/sparse checks: Aaro Koskinen (6): arm: omap1: add missing includes arm: omap1: make some functions static arm: omap1: mbox: make variables static arm: omap1: mbox: delete unused variable arm: omap1: board-ams-delta: fix cast

[PATCH] arm: omap1: add missing includes

2010-11-18 Thread Aaro Koskinen
it be static? arch/arm/mach-omap1/serial.c:190:6: warning: symbol 'omap_serial_wake_trigger' was not declared. Should it be static? arch/arm/mach-omap1/time.c:252:18: warning: symbol 'omap_timer' was not declared. Should it be static? Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com

Re: [PATCH]i2c-omap: pass scll, sclh through board file for Errata i585

2010-05-07 Thread Aaro Koskinen
Hi, balaj...@ti.com wrote: From: Balaji T K balaj...@ti.com Errata ID: i535 - I2C1 to 3 SCL low period is shorter in FS mode Due to IO cell influence, I2C1 to 3 SCL low period can be shorter than expected. As a result, I2C AC timing (SCL minimum low period) in FS mode may not meet the

[RESEND PATCH v4 2/2] omap: rx-51: enable tsc2005

2010-05-04 Thread Aaro Koskinen
Enable TSC2005 touchscreen driver on the RX-51 board. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/configs/rx51_defconfig |1 + arch/arm/mach-omap2/board-rx51-peripherals.c | 57 ++ 2 files changed, 58 insertions(+), 0 deletions

[RESEND PATCH v4 1/2] input: touchscreen: introduce tsc2005 driver

2010-05-04 Thread Aaro Koskinen
, Hiroshi DOYU, Ari Kauppi, Tony Lindgren, Jarkko Nikula, Eero Nurkkala and Roman Tereshonkov. Signed-off-by: Lauri Leukkunen lauri.leukku...@nokia.com [aaro.koski...@nokia.com: patch description, rebasing cleanup] Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com Cc: David Brownell dbrown

[PATCH v4 1/2] input: touchscreen: introduce tsc2005 driver

2010-04-19 Thread Aaro Koskinen
, Hiroshi DOYU, Ari Kauppi, Tony Lindgren, Jarkko Nikula, Eero Nurkkala and Roman Tereshonkov. Signed-off-by: Lauri Leukkunen lauri.leukku...@nokia.com [aaro.koski...@nokia.com: patch description, rebasing cleanup] Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com Cc: David Brownell dbrown

[PATCH v4 2/2] omap: rx-51: enable tsc2005

2010-04-19 Thread Aaro Koskinen
Enable TSC2005 touchscreen driver on the RX-51 board. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/configs/rx51_defconfig |1 + arch/arm/mach-omap2/board-rx51-peripherals.c | 57 ++ 2 files changed, 58 insertions(+), 0 deletions

Re: [PATCH v3] OMAP2/3: I2C: Errata ID i207: Clear wrong RDR interrupt

2010-04-15 Thread Aaro Koskinen
Hi, Manjunatha GK wrote: Under certain rare conditions, I2C_STAT[13].RDR bit may be set and the corresponding interrupt fire, even there is no data in the receive FIFO, or the I2C data transfer is still ongoing. These spurious RDR events must be ignored by the software. This patch handles

Re: [PATCH v2 2/2] omap i2c: add a timeout to the busy waiting

2010-03-25 Thread Aaro Koskinen
Hi, Alexander Shishkin wrote: The errata 1.153 workaround is busy waiting on XUDF bit in interrupt context, which may lead to kernel hangs. The problem can be reproduced by running the bus with wrong (too high) speed. Signed-off-by: Alexander Shishkin virtu...@slind.org Acked-by: Tony

[PATCH v2] omap: fix clocksource_32k to start from zero

2010-03-22 Thread Aaro Koskinen
returned 0 after 0 usecs [ 508.697967] calling omap_init_devices+0x0/0x38 @ 1 [ 508.698425] initcall omap_init_devices+0x0/0x38 returned 0 after 0 usecs This will confuse tools such as scripts/bootgraph.pl. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com Acked-by: Kevin

[PATCH] omap: delete unused bootloader tag variables

2010-03-22 Thread Aaro Koskinen
They are not needed and add over 512 bytes to kernel data. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/plat-omap/common.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index 01cbb48

[PATCH] omap: fix clocksource_32k to start from zero

2010-03-19 Thread Aaro Koskinen
returned 0 after 0 usecs [ 508.697967] calling omap_init_devices+0x0/0x38 @ 1 [ 508.698425] initcall omap_init_devices+0x0/0x38 returned 0 after 0 usecs This will confuse tools such as scripts/bootgraph.pl. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- See also

[PATCH v3 2/2] omap: rx-51: enable tsc2005

2010-03-12 Thread Aaro Koskinen
Enable TSC2005 touchscreen driver on the RX-51 board. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/configs/rx51_defconfig |1 + arch/arm/mach-omap2/board-rx51-peripherals.c | 57 ++ 2 files changed, 58 insertions(+), 0 deletions

[PATCH v3 1/2] input: touchscreen: introduce tsc2005 driver

2010-03-12 Thread Aaro Koskinen
, Hiroshi DOYU, Ari Kauppi, Tony Lindgren, Jarkko Nikula, Eero Nurkkala and Roman Tereshonkov. Signed-off-by: Lauri Leukkunen lauri.leukku...@nokia.com [aaro.koski...@nokia.com: patch description, rebasing cleanup] Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com Cc: David Brownell dbrown

[PATCHv2] OMAP: pass the reboot command to the boot loader

2010-02-26 Thread Aaro Koskinen
be modified by the userspace). Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- v2: Refreshed against the current omap-for-linus branch (b610ec502376d915b76a62e22576c5d0462cc9c9). arch/arm/mach-omap2/prcm.c |4 ++-- arch/arm/plat-omap/include/plat/prcm.h |2 +- arch/arm

[PATCH] OMAP: pass the reboot command to the boot loader

2010-02-24 Thread Aaro Koskinen
be modified by the userspace). Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/prcm.c |4 ++-- arch/arm/plat-omap/include/plat/prcm.h |2 +- arch/arm/plat-omap/include/plat/system.h |6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff

Re: [PATCH] OMAP: hsmmc: fix memory leak

2010-02-10 Thread Aaro Koskinen
Hi, On Wed, 10 Feb 2010, Tony Lindgren wrote: * Aaro Koskinen aaro.koski...@nokia.com [100208 04:29]: The platform data allocated with kmalloc() will become unreachable once the init is complete, so it should be freed. The problem was discovered by kmemleak. Looks like this is safe to do

[PATCH] OMAP: hsmmc: fix memory leak

2010-02-08 Thread Aaro Koskinen
The platform data allocated with kmalloc() will become unreachable once the init is complete, so it should be freed. The problem was discovered by kmemleak. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/hsmmc.c |7 ++- 1 files changed, 6 insertions(+), 1

Re: [PATCH] omap i2c: add timeout to a busy loop in isr

2009-12-15 Thread Aaro Koskinen
send the patch to ben-li...@fluff.org with linux-omap and linux-...@vger.kernel.org in CC. Tested-by: Aaro Koskinen aaro.koski...@nokia.com drivers/i2c/busses/i2c-omap.c | 21 + 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b

Re: [PATCH v2 2/2] omap: RX-51: enable tsc2005

2009-11-09 Thread Aaro Koskinen
Hi, ext Kalle Valo wrote: Aaro Koskinen aaro.koski...@nokia.com writes: Enable tsc2005 touchscreen driver on the RX-51 board. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- The patch is for 2.6.32-rc6. [...] +static struct spi_board_info rx51_peripherals_spi_board_info

[PATCH v2 2/2] omap: RX-51: enable tsc2005

2009-11-04 Thread Aaro Koskinen
Enable tsc2005 touchscreen driver on the RX-51 board. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- The patch is for 2.6.32-rc6. arch/arm/configs/rx51_defconfig |1 + arch/arm/mach-omap2/board-rx51-peripherals.c | 66 ++ 2 files changed, 67

[PATCH v2 1/2] input: touchscreen: introduce tsc2005 driver

2009-11-04 Thread Aaro Koskinen
. Signed-off-by: Lauri Leukkunen lauri.leukku...@nokia.com [aaro.koski...@nokia.com: patch description, rebasing cleanup] Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com CC: David Brownell dbrown...@users.sourceforge.net CC: Phil Carmody ext-phil.2.carm...@nokia.com CC: Imre Deak imre.d

Re: [PATCHv2 1/3] OMAP UART: Add omap-serial driver support.

2009-10-28 Thread Aaro Koskinen
Hello, Govindraj.R wrote: This patch adds support for OMAP3430-HIGH SPEED UART Controller. Signed-off-by: Govindraj R govindraj.r...@ti.com Could you fix these checkpatch errors: ERROR: need consistent spacing around '|' (ctx:VxW) #477: FILE: drivers/serial/omap-serial.c:238: + }

Re: [PATCH RESEND] I2C: OMAP: Add missing wakeup events

2009-10-13 Thread Aaro Koskinen
-by: Aaro Koskinen aaro.koski...@nokia.com --- drivers/i2c/busses/i2c-omap.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 827da08..34ea9ed 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses

[PATCH RESEND] I2C: OMAP: Add missing wakeup events

2009-10-12 Thread Aaro Koskinen
From: Jagadeesh Bhaskar Pakaravoor j-pakarav...@ti.com Include wake up events for receiver overflow and transmitter underflow in OMAP_I2C_WE_REG configuration. Also fix a small typo. Signed-off-by: Jagadeesh Bhaskar Pakaravoor j-pakarav...@ti.com Signed-off-by: Aaro Koskinen aaro.koski

[PATCH] OMAP: RX-51: Drop I2C-1 speed to 2200

2009-10-09 Thread Aaro Koskinen
The I2C-1 bus frequency on RX-51 should be 2.2 MHz. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/board-rx51-peripherals.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2

[PATCH v2] OMAP: RX-51: Drop I2C-1 speed to 2200

2009-10-09 Thread Aaro Koskinen
The I2C-1 bus frequency on RX-51 should be 2.2 MHz. The speed is limited by TWL5030/GAIA; a higher speed could lead to errors on the interface. The maximum speed depends on the system clock for GAIA: 2.2 MHz (if 19.2 MHz), 2.4 MHz (26 MHz) or 2.9 MHz (38.4 MHz). Signed-off-by: Aaro Koskinen

Re: [PATCH 1/1] OMAP: I2C: Add mpu wake up latency constraint in i2c

2009-10-01 Thread Aaro Koskinen
Hello, Kalle Jokiniemi wrote: On Wed, 2009-09-30 at 19:36 +0300, Kevin Hilman wrote: Seems like the latency value should also be (optionally) passed in pdata so this can be experimented with per-platform. Well, it kind of is already, since we pass the function that sets the latency from

Re: [PATCH 3/4] OMAP3 McSPI: Adds context save/restore

2009-06-29 Thread Aaro Koskinen
chip select. ext Kevin Hilman wrote: From: Hemanth V heman...@ti.com This patch adds context save/restore feature to McSPI driver. This includes fixes by Aaro Koskinen Signed-off-by: Hemanth V heman...@ti.com Reviewed-by: Aaro Koskinen aaro.koski...@nokia.com Signed-off-by: Kevin Hilman khil

Re: [PATCH 4/4] I2C: OMAP3: PM: (re)init for every transfer to support off-mode

2009-06-26 Thread Aaro Koskinen
Hello, Kevin Hilman wrote: From: Rajendra Nayak rna...@ti.com Because of OMAP off-mode, powerdomain can go off when I2C is idle. Save enough state, and do a re-init for each transfer. Additional save/restore state added by Jagadeesh Bhaskar Pakaravoor (SYSC_REG) and Aaro Koskinen (wakeup

Re: [PATCH 3/4] OMAP3 McSPI: Adds context save/restore

2009-06-26 Thread Aaro Koskinen
: From: Hemanth V heman...@ti.com This patch adds context save/restore feature to McSPI driver. This includes fixes by Aaro Koskinen Signed-off-by: Hemanth V heman...@ti.com Reviewed-by: Aaro Koskinen aaro.koski...@nokia.com Signed-off-by: Kevin Hilman khil...@deeprootsystems.com --- drivers/spi

Re: [PATCH] OMAP: McSPI: Fix RX DMA transfer path

2009-06-15 Thread Aaro Koskinen
Hello, ext Hemanth V wrote: From: Aaro Koskinen aaro.koski...@nokia.com From: Eero Nurkkala ext-eero.nurkk...@nokia.com When data is read through DMA, the last element must be read separately through the RX register. It cannot be transferred by the DMA. For further details see e.g. OMAP3430

[PATCH] OMAP: McSPI: Fix RX DMA transfer path

2009-06-12 Thread Aaro Koskinen
while keeping the idea.] Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- drivers/spi/omap2_mcspi.c | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c index d6d0c5d..0f640b0 100644 --- a/drivers

[PATCH 2/2] I2C: OMAP3: Better noise suppression for fast/standard modes

2009-05-27 Thread Aaro Koskinen
Use longer noise filter period for fast and standard mode. Based on an earlier patch by Eero Nurkkala. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- drivers/i2c/busses/i2c-omap.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses

[PATCH 1/2] I2C: OMAP2/3: Fix scll/sclh calculations

2009-05-27 Thread Aaro Koskinen
ns 60 ns 1700320 ns 120 ns and for F/S: speed tLowtHigh 400 1300 ns 600 ns 100 4700 ns 4000 ns By using duty cycles 33/66 (HS, F) and 50/50 (S) we stay above these minimum values. Signed-off-by: Aaro

[PATCH] OMAP: PM: Clear DMA channel state after a wakeup

2009-05-20 Thread Aaro Koskinen
Clear DMA channel states so that users can assume a known initial state. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/plat-omap/dma.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index

Re: [PATCH 0/2] I2C: OMAP: spurious IRQ fixes

2009-04-27 Thread Aaro Koskinen
Hello, Paul Walmsley wrote: It seems to work: under constant I2C load, no spurious IRQ messages showed up after several hours of testing. (Without these patches, spurious IRQs usually show up in a few minutes.) Some of the code has also been cleaned up. Any feedback on how this series works

[PM PATCH] OMAP3: PM: Save and restore I2C wakeup sources

2009-03-25 Thread Aaro Koskinen
Save and restore I2C wakeup sources. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- drivers/i2c/busses/i2c-omap.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 50f3285..5ce055c 100644

[PM PATCH] OMAP3: PM: Fix INTC context save/restore

2009-03-12 Thread Aaro Koskinen
Wrong index was used for ILR. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/irq.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index 6cc5757..f813916 100644 --- a/arch/arm/mach

Re: [pacth] I2C bug fixes for L-O and L-Z

2009-03-05 Thread Aaro Koskinen
Hello, Woodruff, Richard wrote: Recently one custom board was having some I2C issues. In looking at it a couple things stood out. I've attached a patches for l-o and l-z for anyone to comment on which cares. I hope these fixes are not ignored. Maybe they should be resent as they are missing

Re: tHigh tLow discussion (was [pacth] I2C bug fixes for L-O and L-Z)

2009-02-24 Thread Aaro Koskinen
Hello, ext Nishanth Menon wrote: Oops.. copy-paste typo.. :( tLow = (scll+3) * iclk tHigh = (sclh+9) * iclk Vs: TRM: tHigh = ( sclh +5 )*iclk period tLow = ( scll +7 )*iclk period But my question is this: why are we trying to a different equation here compared to the equation in the TRM?

Re: tHigh tLow discussion (was [pacth] I2C bug fixes for L-O and L-Z)

2009-02-24 Thread Aaro Koskinen
Hello, ext Nishanth Menon wrote: Aaro Koskinen said the following on 02/24/2009 11:09 AM: TRM: tHigh = ( sclh +5 )*iclk period tLow = ( scll +7 )*iclk period But my question is this: why are we trying to a different equation here compared to the equation in the TRM? The problem with TRM

[PATCH 0/2] twl4030-madc fixes

2009-02-20 Thread Aaro Koskinen
Hello, Two fixes for twl4030-madc: - The first one converts the ioctl to unlocked one. - The second one should return the conversion status to user quicker, both in OK and timeout cases. There's also fix for the timeout case (currently the request remains active) and some cleanup. A. -- To

[PATCH 2/2] twl4030-madc: Let the operation complete faster

2009-02-20 Thread Aaro Koskinen
No need to wait before the first read, as the operation is likely completed already. For timeout 50 milliseconds is an overkill, poll the register for the duration of 5 milliseconds at maximum. Also, clear the active flag in case of timeout. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com

[PATCH 1/2] twl4030-madc: Convert ioctl to unlocked

2009-02-20 Thread Aaro Koskinen
Use unlocked ioctl instead of taking the BKL for an operation that can take some milliseconds. The driver mutex is now taken before the active status check, so that the concurrent users of this ioctl won't start seeing EBUSY (previously guaranteed by the BKL). Signed-off-by: Aaro Koskinen

[PATCH] ARM: OMAP: Allow I2C bus driver to be compiled as a module

2009-02-18 Thread Aaro Koskinen
Fixes a linker error when OMAP I2C bus driver is compiled as a module: ERROR: i2c_register_board_info [arch/arm/plat-omap/i2c.ko] undefined! The I2C utility functions used for board initialization should be always built-in. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm

[PATCH] ARM: OMAP: sched_clock() corrected

2009-02-17 Thread Aaro Koskinen
-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/plat-omap/common.c | 14 +- 1 files changed, 5 insertions(+), 9 deletions(-) diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index 8c53125..2866612 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch

Re: [PATCH 1/1] Allow I2C_OMAP to compile as a module.

2009-02-16 Thread Aaro Koskinen
Hello, ext Jarkko Nikula wrote: Jarkko Nikula jhnik...@gmail.com wrote: Tony's version does not fix the issue since obj-$(CONFIG_I2C_OMAP) below still tries to compile arch/arm/plat-omap/i2c.c as a module. -obj-$(CONFIG_I2C_OMAP) += i2c.o + +ifneq ($(CONFIG_I2C_OMAP),) +

Re: [PATCH PM] OMAP3 McSPI: Adds context save/restore

2009-02-06 Thread Aaro Koskinen
Hello, ext Nayak, Rajendra wrote: From: Hemanth V heman...@ti.com This patch adds context save/restore feature to McSPI driver. This includes fixes by Aaro Koskinen Signed-off-by: Hemanth V heman...@ti.com For some reason git-am does not take this to my tree, but when applied with patch

[PATCH PM 0/2] OMAP McSPI: Fixes to save/restore

2009-02-05 Thread Aaro Koskinen
Hello, Here's two fixes for the recent save/restore change (OMAP3 McSPI: Adds context save/restore), which does not seem to work with chip select. Jouni Hogander already sent one patch, but it does not solve all the problems. This patch updates the shadow value on every write, and uses it

[PATCH PM 1/2] OMAP McSPI: Fix context save/restore

2009-02-05 Thread Aaro Koskinen
Fix context save/restore to work with chip select. Also update the shadow CHCONF0 register on every write and eliminate register reads. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- drivers/spi/omap2_mcspi.c | 51 +--- 1 files changed, 29

[PATCH PM 2/2] OMAP McSPI: spin_unlock_irq() missing

2009-02-05 Thread Aaro Koskinen
spin_unlock_irq() not called on failure path Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- drivers/spi/omap2_mcspi.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c index 4d09777..56e91a4 100644

Re: [PATCH] I2C: OMAP: Include OMAP_I2C_SYSC_REG in save and restore

2009-02-02 Thread Aaro Koskinen
Hello, ext Pakaravoor, Jagadeesh wrote: From: Jagadeesh Bhaskar Pakaravoor j-pakarav...@ti.com Save and restore should include OMAP_I2C_SYSC_REG. Signed-off-by: Jagadeesh Bhaskar Pakaravoor j-pakarav...@ti.com CC: Jouni Hogander jouni.hogan...@nokia.com --- Index:

[PATCH] OMAP2: gptimer min_delta_ns corrected

2009-01-02 Thread Aaro Koskinen
to clockevent code trying to program the timer with zero ticks). Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com --- arch/arm/mach-omap2/timer-gp.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/timer-gp.c b/arch/arm/mach-omap2/timer-gp.c index

Re: [PATCH] OMAP2: gptimer min_delta_ns should be rounded up

2008-12-31 Thread Aaro Koskinen
Hello, Woodruff, Richard wrote: clockevent_delta2ns(3, clockevent_gpt); min_delta_ns stops the frame work from trying to program an expiry time which may not be achievable due to timer costs. A write to the timer when it has a 32KHz F-Clock can take ~3 32Khz clock cycles to

[PATCH] OMAP2: gptimer min_delta_ns should be rounded up

2008-12-29 Thread Aaro Koskinen
clockevent_delta2ns() used to initialize min_delta_ns rounds the value down, so the result can be too small. When clockevents_program_event() is using too small value it will try to program the timer with zero ticks stalling the timer queue. Signed-off-by: Aaro Koskinen aaro.koski...@nokia.com

<    1   2   3   4   5