[PATCH v2] gpio/omap: add *remove* callback in platform_driver

2012-08-08 Thread Tarun Kanti DebBarma
Add *remove* callback so that necessary cleanup operations are performed when device is unregistered. The device is deleted from the list and associated clock handle is released by calling clk_put() and irq descriptor is released using the irq_free_desc() api. Signed-off-by: Tarun Kanti DebBarma

[PATCH 1/2] gpio/omap: move bank-dbck initialization to omap_gpio_mod_init()

2012-07-11 Thread Tarun Kanti DebBarma
Since the bank-dbck initialization in a one time operation there is no need to keep this within gpio_debounce(). Therefore, moving clk_get(bank-dbck) to omap_gpio_mod_init(). Since the value of bank-dbck would be NULL at the beginning, this check has been removed. Signed-off-by: Tarun Kanti

[PATCH 2/2] gpio/omap: add *remove* callback in platform_driver

2012-07-11 Thread Tarun Kanti DebBarma
Add *remove* callback so that necessary cleanup operations are performed when device is unregistered. The device is deleted from the list and associated clock handle is released by calling clk_put() and irq descriptor is released using the irq_free_desc() api. Signed-off-by: Tarun Kanti DebBarma

[PATCH v2 REPOST 4/4] ARM: OMAP2+: dmtimer: cleanup fclk usage

2012-07-05 Thread Tarun Kanti DebBarma
, Benoit b-cous...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Tony Lindgren t...@atomide.com Cc: Kevin Hilman khil...@ti.com Cc: Rajendra Nayak rna...@ti.com Cc: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- Reference: git://git.kernel.org/pub/scm

[PATCH] ARM: OMAP4: PM: Keep static dep between MPUSS and ABE clockdomain

2012-05-15 Thread Tarun Kanti DebBarma
Lindgren t...@atomide.com Cc: Russell King li...@arm.linux.org.uk Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap2/pm44xx.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/pm44xx.c b/arch/arm/mach-omap2/pm44xx.c index

[PATCH 0/2] ARM: omap: dmtimer: fix incorrect TCRR value in posted mode

2012-05-11 Thread Tarun Kanti DebBarma
in omap_dm_timer_prepare() where timer is set to non-posted mode if iclk 4*fclk. Rajendra Nayak (1): ARM: omap: hwmod: Add an 'ick' clkdev alias Tarun Kanti DebBarma (1): ARM: omap: dmtimer: set non-posted mode if iclk less than 4*fck arch/arm/plat-omap/dmtimer.c | 12 arch

[PATCH 1/2] ARM: omap: hwmod: Add an 'ick' clkdev alias

2012-05-11 Thread Tarun Kanti DebBarma
From: Rajendra Nayak rna...@ti.com For all hwmods' with just one slave interface, use the slave-clk to add an 'ick' clkdev alias in the table. This is useful for drivers of such devices to get the interface clock using 'clk_get(dev, ick)' Signed-off-by: Rajendra Nayak rna...@ti.com ---

[PATCH 2/2] ARM: omap: dmtimer: set non-posted mode if iclk less than 4*fck

2012-05-11 Thread Tarun Kanti DebBarma
Timers in PER domain periodically report old time from TCRR in posted mode if ick 4*fck. Therefore, set timer to non-posted whenever ick 4*fck for all timers. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/plat-omap/dmtimer.c | 12 1 files changed, 12

[PATCH v2] gpio/omap: fix incorrect initialization of omap_gpio_mod_init

2012-04-30 Thread Tarun Kanti DebBarma
...@atomide.com Cc: Kevin Hilman khil...@ti.com Cc: Santosh Shilimkar santosh.shilim...@ti.com Cc: Grant Likely grant.lik...@secretlab.ca Reported-by: Janusz Krzysztofik jkrzy...@tis.icnet.pl Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- v2: Avoid irqstatus initialization sequence change. Use

[PATCH] gpio/omap: fix incorrect initialization of omap_gpio_mod_init

2012-04-27 Thread Tarun Kanti DebBarma
: Santosh Shilimkar santosh.shilim...@ti.com Cc: Grant Likely grant.lik...@secretlab.ca Reported-by: Janusz Krzysztofik jkrzy...@tis.icnet.pl Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- Tested on OMAP2+ platforms and bootup test on OMAP1710. Janusz, Please help me in validating the patch

[PATCH 0/8] gpio/omap: remaining cleanups and fix

2012-04-27 Thread Tarun Kanti DebBarma
: Santosh Shilimkar santosh.shilim...@ti.com Cc: Cousson, Benoit b-cous...@ti.com Cc: Grant Likely grant.lik...@secretlab.ca Tarun Kanti DebBarma (8): gpio/omap: remove virtual_irq_start variable gpio/omap: remove saved_fallingdetect, saved_risingdetect gpio/omap: remove suspend_wakeup field from

[PATCH 8/8] gpio/omap: fix missing check in *_runtime_suspend()

2012-04-27 Thread Tarun Kanti DebBarma
Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index d238f84..59a4af1 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c

[PATCH 7/8] gpio/omap: remove cpu_is_omapxxxx() checks from *_runtime_resume()

2012-04-27 Thread Tarun Kanti DebBarma
santosh.shilim...@ti.com Cc: Cousson, Benoit b-cous...@ti.com Cc: Grant Likely grant.lik...@secretlab.ca Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap2/gpio.c |2 ++ arch/arm/plat-omap/include/plat/gpio.h |2 ++ drivers/gpio/gpio-omap.c

[PATCH 6/8] gpio/omap: remove suspend/resume callbacks

2012-04-27 Thread Tarun Kanti DebBarma
: Kevin Hilman khil...@ti.com Cc: Tony Lindgren t...@atomide.com Cc: Santosh Shilimkar santosh.shilim...@ti.com Cc: Cousson, Benoit b-cous...@ti.com Cc: Grant Likely grant.lik...@secretlab.ca Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com

[PATCH 3/8] gpio/omap: remove suspend_wakeup field from struct gpio_bank

2012-04-27 Thread Tarun Kanti DebBarma
: Grant Likely grant.lik...@secretlab.ca Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe Balbi ba...@ti.com --- drivers/gpio/gpio-omap.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git

[PATCH 5/8] gpio/omap: remove retrigger variable in gpio_irq_handler

2012-04-27 Thread Tarun Kanti DebBarma
santosh.shilim...@ti.com Cc: Cousson, Benoit b-cous...@ti.com Cc: Grant Likely grant.lik...@secretlab.ca Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe Balbi ba...@ti.com --- drivers/gpio/gpio-omap.c |3 --- 1

[PATCH 1/8] gpio/omap: remove virtual_irq_start variable

2012-04-27 Thread Tarun Kanti DebBarma
...@ti.com Cc: Grant Likely grant.lik...@secretlab.ca Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap1/gpio15xx.c |2 -- arch/arm/mach-omap1/gpio16xx.c |5 - arch/arm/mach-omap1/gpio7xx.c |7 --- arch/arm/mach-omap2/gpio.c

[PATCH 4/8] gpio/omap: remove saved_wakeup field from struct gpio_bank

2012-04-27 Thread Tarun Kanti DebBarma
, Benoit b-cous...@ti.com Cc: Grant Likely grant.lik...@secretlab.ca Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe Balbi ba...@ti.com --- drivers/gpio/gpio-omap.c | 12 +++- 1 files changed, 3 insertions(+), 9

[PATCH 2/8] gpio/omap: remove saved_fallingdetect, saved_risingdetect

2012-04-27 Thread Tarun Kanti DebBarma
: Cousson, Benoit b-cous...@ti.com Cc: Grant Likely grant.lik...@secretlab.ca Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe Balbi ba...@ti.com --- drivers/gpio/gpio-omap.c | 19 --- 1 files changed, 8

[PATCH v2 3/4] ARM: OMAP2+: dmtimer: cleanup iclk usage

2012-04-20 Thread Tarun Kanti DebBarma
rna...@ti.com Cc: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap2/clock44xx_data.c | 11 --- arch/arm/mach-omap2/timer.c |7 --- arch/arm/plat-omap/include/plat/dmtimer.h |2 +- 3

[PATCH v2 4/4] ARM: OMAP2+: dmtimer: cleanup fclk usage

2012-04-20 Thread Tarun Kanti DebBarma
, Benoit b-cous...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Tony Lindgren t...@atomide.com Cc: Kevin Hilman khil...@ti.com Cc: Rajendra Nayak rna...@ti.com Cc: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap2/clock44xx_data.c

[PATCH v2 0/4] ARM: OMAP2+: dmtimer: cleanup related to devm API and clk usage

2012-04-20 Thread Tarun Kanti DebBarma
santosh.shilim...@ti.com Tarun Kanti DebBarma (4): ARM: OMAP: dmtimer: use devm_ API and do some cleanup in probe() ARM: OMAP2+: hwmod: add omap_hwmod_get_main_clk() API ARM: OMAP2+: dmtimer: cleanup iclk usage ARM: OMAP2+: dmtimer: cleanup fclk usage arch/arm/mach-omap2/clock44xx_data.c

[PATCH v2 1/4] ARM: OMAP: dmtimer: use devm_ API and do some cleanup in probe()

2012-04-20 Thread Tarun Kanti DebBarma
...@pwsan.com Cc: Tony Lindgren t...@atomide.com Cc: Kevin Hilman khil...@ti.com Cc: Rajendra Nayak rna...@ti.com Cc: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/plat-omap/dmtimer.c | 51 + 1

[PATCH v2 2/4] ARM: OMAP2+: hwmod: add omap_hwmod_get_main_clk() API

2012-04-20 Thread Tarun Kanti DebBarma
: Kevin Hilman khil...@ti.com Cc: Rajendra Nayak rna...@ti.com Cc: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap2/omap_hwmod.c | 15 +++ arch/arm/plat-omap/include/plat/omap_hwmod.h |2 ++ 2 files

[PATCH 3/3] ARM: OMAP2+: dmtimer: cleanup fclk usage

2012-04-16 Thread Tarun Kanti DebBarma
the fclk and thus avoid construction of fclk clock name. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap2/clock2420_data.c | 72 ++-- arch/arm/mach-omap2/clock2430_data.c | 72 ++-- arch/arm/mach-omap2

[PATCH 2/3] ARM: OMAP2+: dmtimer: cleanup iclk usage

2012-04-16 Thread Tarun Kanti DebBarma
We do not use iclk anywhere in the dmtimer driver and so removing it. Hence removing the timer iclk entries from OMAP4 clkdev table as well. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap2/clock44xx_data.c | 11 --- arch/arm/mach-omap2/timer.c

[PATCH 0/3] ARM: OMAP2+: dmtimer: cleanup related to devm API and clk usage

2012-04-16 Thread Tarun Kanti DebBarma
) Series is available here for reference: git://gitorious.org/~tarunkanti/omap-sw-develoment/tarunkantis-linux-omap-dev dmtimer_cleanup_for_3.5 Tested on following platforms: OMAP4430SDP, OMAP3430SDP, OMAP2430SDP. Could not test on OMAP2420 due to unavailability of board. Tarun Kanti DebBarma (3

[PATCH 1/3] ARM: OMAP: dmtimer: Use devm_ API and do some cleanup in probe()

2012-04-16 Thread Tarun Kanti DebBarma
Replace the regular kzalloc and ioremap with the devm_ equivalent to simplify error handling. We don't need kree() anymore in omap_dm_timer_remove(). Also added *dev* pointer to reference pdev-dev which makes the usage shorter in code. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com

[PATCH v2] ARM: OMAP2+: dmtimer: remove redundant sysconfig context restore

2012-04-12 Thread Tarun Kanti DebBarma
Since hwmod framework now manages sysconfig context save/restore there is no more need to touch this register in driver. Hence, remove restore of sysconfig register in omap_timer_restore_context. This was causing incorrect context restore of sysconfig register. Signed-off-by: Tarun Kanti DebBarma

[PATCH] ARM: OMAP2+: remove redundant sysconfig context restore

2012-04-11 Thread Tarun Kanti DebBarma
Since hwmod framework now manages sysconfig context save/restore there is no more need to touch this register in driver. Hence, remove restore of sysconfig register in omap_timer_restore_context. This was causing incorrect context restore of sysconfig register. Signed-off-by: Tarun Kanti DebBarma

[PATCH] ARM: OMAP2+: dmtimer: remove redundant sysconfig context restore

2012-04-11 Thread Tarun Kanti DebBarma
Since hwmod framework now manages sysconfig context save/restore there is no more need to touch this register in driver. Hence, remove restore of sysconfig register in omap_timer_restore_context. This was causing incorrect context restore of sysconfig register. Signed-off-by: Tarun Kanti DebBarma

[PATCH v3 0/4] ARM: OMAP: boards: changes to support dynamic irq alloc

2012-03-29 Thread Tarun Kanti DebBarma
); h2_smc91x_resources[1].end = gpio_to_irq(0); Similar change incorporated for all the boards wherever applicable. v2: - Modified the patch subjects as per convention. - Added a new patch to remove OMAP_GPIO_IRQ from ams_delta_serio driver. - Added a new patch to remove OMAP_GPIO_IRQ macro definition. Tarun Kanti

[PATCH v3 4/4] ARM: OMAP: Remove OMAP_GPIO_IRQ macro definition

2012-03-29 Thread Tarun Kanti DebBarma
Since all references to OMAP_GPIO_IRQ macro are replaced now with gpio_to_irq(), this can be removed altogether. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/plat-omap/include/plat/gpio.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/arch/arm

[PATCH v3 3/4] drivers: input: Fix OMAP_GPIO_IRQ with gpio_to_irq() in ams_delta_serio_exit()

2012-03-29 Thread Tarun Kanti DebBarma
Even though ams-delta-serio input driver uses gpio_to_irq() in all relevent places to get irq number, the ams_delta_serio_exit() still uses OMAP_GPIO_IRQ macro. Fix this. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/input/serio/ams_delta_serio.c |2 +- 1 files changed

[PATCH v3 2/4] ARM: OMAP2+: boards: Fix OMAP_GPIO_IRQ usage with gpio_to_irq()

2012-03-29 Thread Tarun Kanti DebBarma
With dynamic allocation of IRQ the usage of OMAP_GPIO_IRQ is no longer valid. We should be using gpio_to_irq() instead. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap2/board-2430sdp.c |2 +- arch/arm/mach-omap2/board-4430sdp.c |2 +- arch

[PATCH v3 1/4] ARM: OMAP1: boards: Fix OMAP_GPIO_IRQ usage with gpio_to_irq()

2012-03-29 Thread Tarun Kanti DebBarma
With dynamic allocation of IRQ the usage of OMAP_GPIO_IRQ is no longer valid. We should be using gpio_to_irq() instead. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap1/board-h2.c|8 arch/arm/mach-omap1/board-h3.c|9 - arch

[PATCH v3 1/4] ARM: OMAP1: boards: Fix OMAP_GPIO_IRQ usage with gpio_to_irq()

2012-03-29 Thread Tarun Kanti DebBarma
With dynamic allocation of IRQ the usage of OMAP_GPIO_IRQ is no longer valid. We should be using gpio_to_irq() instead. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap1/board-h2.c|8 arch/arm/mach-omap1/board-h3.c|9 - arch

[PATCH v4 RESEND 6/7] gpio/omap: fix incorrect update to context.irqenable1

2012-03-21 Thread Tarun Kanti DebBarma
for _disable_gpio_irqbank(). Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com --- Updated change log as per Kevin's suggestion. drivers/gpio/gpio-omap.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH v4 RESEND 4/7] gpio/omap: fix missing dataout context save in _set_gpio_dataout_reg

2012-03-20 Thread Tarun Kanti DebBarma
There are two functions, _set_gpio_dataout_reg() and _set_gpio_dataout_mask() which writes to dataout register and the dataout context must be saved. It is missing in the first function, _set_gpio_dataout_reg(). Fix this. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh

[PATCH v4 RESEND 6/7] gpio/omap: fix incorrect update to context.irqenable1

2012-03-20 Thread Tarun Kanti DebBarma
l |= gpio_mask; } Make the same change for _disable_gpio_irqbank(). Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com --- drivers/gpio/gpio-omap.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff

[PATCH v4 RESEND 1/7] gpio/omap: fix wakeup_en register update in _set_gpio_wakeup()

2012-03-20 Thread Tarun Kanti DebBarma
()-gpio_irq_type()-_set_gpio_triggering()-set_gpio_trigger() irq_set_wake()-gpio_wake_enable()-_set_gpio_wakeup() Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers

[PATCH v4 RESEND 3/7] gpio/omap: fix _set_gpio_irqenable implementation

2012-03-20 Thread Tarun Kanti DebBarma
This function should be capable of both enabling and disabling interrupts based upon the *enable* parameter. Right now the function only enables the interrupt and *enable* is not used at all. So add the interrupt disable capability also using the parameter. Signed-off-by: Tarun Kanti DebBarma

[PATCH v4 RESEND 2/7] gpio/omap: fix trigger type to unsigned

2012-03-20 Thread Tarun Kanti DebBarma
, unsigned type) has the right type of parameter, the subsequent called functions set_gpio_triggering() and set_gpio_trigger() wrongly makes it signed integer. Fix this. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe Balbi ba

[PATCH v4 RESEND 5/7] gpio/omap: fix incorrect context restore logic in omap_gpio_runtime_*

2012-03-20 Thread Tarun Kanti DebBarma
In omap_gpio_runtime_suspend/resume() the context save/restore should be independent of bank-enabled_non_wakeup_gpios. This was preventing context restore of GPIO lines which are not wakeup enabled. Reported-by: Govindraj Raja govindraj.r...@ti.com Signed-off-by: Tarun Kanti DebBarma tarun.ka

[PATCH v4 RESEND 0/7] gpio/omap: Some more driver fixes

2012-03-20 Thread Tarun Kanti DebBarma
a new patch to remove suspend/resume callbacks because the operations performed with the callbacks are redundant. Tarun Kanti DebBarma (7): gpio/omap: fix wakeup_en register update in _set_gpio_wakeup() gpio/omap: fix trigger type to unsigned gpio/omap: fix _set_gpio_irqenable

[PATCH v2 3/4] drivers: input: Fix OMAP_GPIO_IRQ with gpio_to_irq() in ams_delta_serio_exit()

2012-03-19 Thread Tarun Kanti DebBarma
Even though ams-delta-serio input driver uses gpio_to_irq() in all relevent places to get irq number, the ams_delta_serio_exit() still uses OMAP_GPIO_IRQ macro. Fix this. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/input/serio/ams_delta_serio.c |2 +- 1 files changed

[PATCH v2 4/4] ARM: OMAP: Remove OMAP_GPIO_IRQ macro definition

2012-03-19 Thread Tarun Kanti DebBarma
Since all references to OMAP_GPIO_IRQ macro are replaced now with gpio_to_irq(), this can be removed altogether. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/plat-omap/include/plat/gpio.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/arch/arm

[PATCH v2 0/4] ARM: OMAP: boards: changes to support dynamic irq alloc

2012-03-19 Thread Tarun Kanti DebBarma
definition. Tarun Kanti DebBarma (4): ARM: OMAP1: boards: Fix OMAP_GPIO_IRQ usage with gpio_to_irq() ARM: OMAP2+: boards: Fix OMAP_GPIO_IRQ usage with gpio_to_irq() drivers: input: Fix OMAP_GPIO_IRQ with gpio_to_irq() in ams_delta_serio_exit() ARM: OMAP: Remove OMAP_GPIO_IRQ macro definition

[PATCH v2 2/4] ARM: OMAP2+: boards: Fix OMAP_GPIO_IRQ usage with gpio_to_irq()

2012-03-19 Thread Tarun Kanti DebBarma
With dynamic allocation of IRQ the usage of OMAP_GPIO_IRQ is no longer valid. We should be using gpio_to_irq() instead. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap2/board-2430sdp.c |2 +- arch/arm/mach-omap2/board-4430sdp.c |2 +- arch

[PATCH v2 1/4] ARM: OMAP1: boards: Fix OMAP_GPIO_IRQ usage with gpio_to_irq()

2012-03-19 Thread Tarun Kanti DebBarma
With dynamic allocation of IRQ the usage of OMAP_GPIO_IRQ is no longer valid. We should be using gpio_to_irq() instead. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap1/board-h2.c|8 arch/arm/mach-omap1/board-h3.c|9 - arch

[PATCH 0/2] omap: board file changes to support dynamic irq alloc

2012-03-16 Thread Tarun Kanti DebBarma
/linux-2.6.git gpio/next on top of these patches. I would request someone help me testing on other platforms. Tarun Kanti DebBarma (2): omap1/board-files: fix OMAP_GPIO_IRQ usage with gpio_to_irq() omap2plus/board-files: fix OMAP_GPIO_IRQ usage with gpio_to_irq() arch/arm/mach-omap1/board-h2.c

[PATCH 1/2] omap1/board-files: fix OMAP_GPIO_IRQ usage with gpio_to_irq()

2012-03-16 Thread Tarun Kanti DebBarma
With dynamic allocation of IRQ the usage of OMAP_GPIO_IRQ is no longer valid. We should be using gpio_to_irq() instead. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap1/board-h2.c|8 arch/arm/mach-omap1/board-h3.c|8 arch

[PATCH 2/2] omap2plus/board-files: fix OMAP_GPIO_IRQ usage with gpio_to_irq()

2012-03-16 Thread Tarun Kanti DebBarma
With dynamic allocation of IRQ the usage of OMAP_GPIO_IRQi is no longer valid. We should be using gpio_to_irq() instead. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- arch/arm/mach-omap2/board-2430sdp.c |2 +- arch/arm/mach-omap2/board-4430sdp.c |2 +- arch

[PATCH v4 04/12] gpio/omap: remove saved_wakeup field from struct gpio_bank

2012-03-16 Thread Tarun Kanti DebBarma
There is no more need to have saved_wakeup because bank-context.wake_en already holds that value. So getting rid of read/write operation associated with this field. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe

[PATCH v4 00/12] gpio/omap: Some more driver cleanup and fixes

2012-03-16 Thread Tarun Kanti DebBarma
are redundant. Tarun Kanti DebBarma (12): gpio/omap: remove saved_fallingdetect, saved_risingdetect fields gpio/omap: fix wakeup_en register update in _set_gpio_wakeup() gpio/omap: remove suspend_wakeup field from struct gpio_bank gpio/omap: remove saved_wakeup field from struct gpio_bank

[PATCH v4 07/12] gpio/omap: fix _set_gpio_irqenable implementation

2012-03-16 Thread Tarun Kanti DebBarma
This function should be capable of both enabling and disabling interrupts based upon the *enable* parameter. Right now the function only enables the interrupt and *enable* is not used at all. So add the interrupt disable capability also using the parameter. Signed-off-by: Tarun Kanti DebBarma

[PATCH v4 01/12] gpio/omap: remove saved_fallingdetect, saved_risingdetect fields

2012-03-16 Thread Tarun Kanti DebBarma
Since we already have context.fallingdetect and context.risingdetect there is no more need to have these additional fields. Also, getting rid of extra reads associated with them. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked

[PATCH v4 08/12] gpio/omap: remove redundant decoding of gpio offset

2012-03-16 Thread Tarun Kanti DebBarma
-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com --- drivers/gpio/gpio-omap.c | 18 +++--- 1 files changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 8b453dd..cce2c73 100644

[PATCH v4 05/12] gpio/omap: get rid of retrigger variable in gpio_irq_handler

2012-03-16 Thread Tarun Kanti DebBarma
commit 672e302e3c (ARM: OMAP: use edge/level handlers from generic IRQ framework) removed retrigger support in favor of using generic IRQ framework. This patch cleans up some unused remnants of that removal. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar

[PATCH v4 10/12] gpio/omap: fix missing dataout context save in _set_gpio_dataout_reg

2012-03-16 Thread Tarun Kanti DebBarma
There are two functions, _set_gpio_dataout_reg() and _set_gpio_dataout_mask() which writes to dataout register and the dataout context must be saved. It is missing in the first function, _set_gpio_dataout_reg(). Fix this. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh

[PATCH v4 06/12] gpio/omap: fix trigger type to unsigned

2012-03-16 Thread Tarun Kanti DebBarma
, unsigned type) has the right type of parameter, the subsequent called functions set_gpio_triggering() and set_gpio_trigger() wrongly makes it signed integer. Fix this. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe Balbi ba

[PATCH v4 03/12] gpio/omap: remove suspend_wakeup field from struct gpio_bank

2012-03-16 Thread Tarun Kanti DebBarma
Since we already have bank-context.wake_en to keep track of gpios which are wakeup enabled, there is no need to have this field any more. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe Balbi ba...@ti.com --- drivers

[PATCH v4 09/12] gpio/omap: remove suspend/resume callbacks

2012-03-16 Thread Tarun Kanti DebBarma
-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com --- drivers/gpio/gpio-omap.c | 47 -- 1 files changed, 0 insertions(+), 47 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio

[PATCH v4 11/12] gpio/omap: fix incorrect context restore logic in omap_gpio_runtime_*

2012-03-16 Thread Tarun Kanti DebBarma
In omap_gpio_runtime_suspend/resume() the context save/restore should be independent of bank-enabled_non_wakeup_gpios. This was preventing context restore of GPIO lines which are not wakeup enabled. Reported-by: Govindraj Raja govindraj.r...@ti.com Signed-off-by: Tarun Kanti DebBarma tarun.ka

[PATCH v4 12/12] gpio/omap: fix incorrect update to context.irqenable1

2012-03-16 Thread Tarun Kanti DebBarma
l |= gpio_mask; } Make the same change for _disable_gpio_irqbank(). Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com --- drivers/gpio/gpio-omap.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff

[PATCH v4 02/12] gpio/omap: fix wakeup_en register update in _set_gpio_wakeup()

2012-03-16 Thread Tarun Kanti DebBarma
()-gpio_irq_type()-_set_gpio_triggering()-set_gpio_trigger() chip.irq_set_wake()-gpio_wake_enable()-_set_gpio_wakeup() Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpio/gpio-omap.c

[PATCH v3 06/13] gpio/omap: fix trigger type to unsigned

2012-03-07 Thread Tarun Kanti DebBarma
, unsigned type) has the right type of parameter, the subsequent called functions set_gpio_triggering() and set_gpio_trigger() wrongly makes it signed integer. Fix this. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe Balbi ba

[PATCH v3 09/13] gpio/omap: remove suspend/resume callbacks

2012-03-07 Thread Tarun Kanti DebBarma
-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c | 47 -- 1 files changed, 0 insertions(+), 47 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 186ce92..8b4a7ba 100644 --- a/drivers/gpio/gpio

[PATCH v3 12/13] gpio/omap: fix incorrect context restore logic in omap_gpio_runtime_resume

2012-03-07 Thread Tarun Kanti DebBarma
In omap_gpio_runtime_resume() the context restore should be independent of bank-enabled_non_wakeup_gpios. This was preventing context restore of GPIO lines which are not wakeup enabled. Reported-by: Govindraj Raja govindraj.r...@ti.com Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com

[PATCH v3 13/13] gpio/omap: fix incorrect update to context.irqenable1

2012-03-07 Thread Tarun Kanti DebBarma
l |= gpio_mask; } Make the same change for _disable_gpio_irqbank(). Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio

[PATCH v3 03/13] gpio/omap: remove suspend_wakeup field from struct gpio_bank

2012-03-07 Thread Tarun Kanti DebBarma
Since we already have bank-context.wake_en to keep track of gpios which are wakeup enabled, there is no need to have this field any more. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe Balbi ba...@ti.com --- drivers

[PATCH v3 02/13] gpio/omap: fix wakeup_en register update in _set_gpio_wakeup()

2012-03-07 Thread Tarun Kanti DebBarma
()-gpio_irq_type()-_set_gpio_triggering()-set_gpio_trigger() chip.irq_set_wake()-gpio_wake_enable()-_set_gpio_wakeup() Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpio/gpio-omap.c

[PATCH v3 07/13] gpio/omap: fix _set_gpio_irqenable implementation

2012-03-07 Thread Tarun Kanti DebBarma
This function should be capable of both enabling and disabling interrupts based upon the *enable* parameter. Right now the function only enables the interrupt and *enable* is not used at all. So add the interrupt disable capability also using the parameter. Signed-off-by: Tarun Kanti DebBarma

[PATCH v3 11/13] gpio/omap: fix dataout register overwrite in _set_gpio_dataout_*

2012-03-07 Thread Tarun Kanti DebBarma
until explicitly changed by respective user/driver of the GPIO line. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 04c2677

[PATCH v3 10/13] gpio/omap: fix missing dataout context save in _set_gpio_dataout_reg

2012-03-07 Thread Tarun Kanti DebBarma
Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 8b4a7ba..04c2677 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -115,6 +115,7

[PATCH v3 01/13] gpio/omap: remove saved_fallingdetect, saved_risingdetect fields

2012-03-07 Thread Tarun Kanti DebBarma
Since we already have context.fallingdetect and context.risingdetect there is no more need to have these additional fields. Also, getting rid of extra reads associated with them. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked

[PATCH v3 00/13] gpio/omap: Some more driver cleanup and fixes

2012-03-07 Thread Tarun Kanti DebBarma
. - Added a new patch to remove redundant decoding of gpio offset in gpio_get(), _get_gpio_datain() and _get_gpio_dataout(). - Added a new patch to remove suspend/resume callbacks because the operations performed with the callbacks are redundant. Tarun Kanti DebBarma (13): gpio/omap: remove

[PATCH v3 05/13] gpio/omap: get rid of retrigger variable in gpio_irq_handler

2012-03-07 Thread Tarun Kanti DebBarma
This local variable is just assigned zero and then OR'ed with isr. It does not appear to serve any purpose and so removing it. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe Balbi ba...@ti.com --- drivers/gpio/gpio

[PATCH v3 08/13] gpio/omap: remove redundant decoding of gpio offset

2012-03-07 Thread Tarun Kanti DebBarma
-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c | 18 +++--- 1 files changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 19f8f44..186ce92 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio

[PATCH v3 04/13] gpio/omap: remove saved_wakeup field from struct gpio_bank

2012-03-07 Thread Tarun Kanti DebBarma
There is no more need to have saved_wakeup because bank-context.wake_en already holds that value. So getting rid of read/write operation associated with this field. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe

[PATCH v2 2/9] gpio/omap: fix wakeup_en register update in _set_gpio_wakeup()

2012-02-29 Thread Tarun Kanti DebBarma
()-gpio_irq_type()-_set_gpio_triggering()-set_gpio_trigger() chip.irq_set_wake()-gpio_wake_enable()-_set_gpio_wakeup() Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpio/gpio-omap.c

[PATCH v2 0/9] gpio/omap: Some more driver cleanup and fixes

2012-02-29 Thread Tarun Kanti DebBarma
to updating bank-context.wake_en. - Added a new patch to remove redundant decoding of gpio offset in gpio_get(), _get_gpio_datain() and _get_gpio_dataout(). - Added a new patch to remove suspend/resume callbacks because the operations performed with the callbacks are redundant. Tarun Kanti

[PATCH v2 8/9] gpio/omap: remove redundant decoding of gpio offset

2012-02-29 Thread Tarun Kanti DebBarma
-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c | 18 +++--- 1 files changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 19f8f44..186ce92 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio

[PATCH v2 1/9] gpio/omap: remove saved_fallingdetect, saved_risingdetect fields

2012-02-29 Thread Tarun Kanti DebBarma
Since we already have context.fallingdetect and context.risingdetect there is no more need to have these additional fields. Also, getting rid of extra reads associated with them. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked

[PATCH v2 7/9] gpio/omap: fix _set_gpio_irqenable implementation

2012-02-29 Thread Tarun Kanti DebBarma
This function should be capable of both enabling and disabling interrupts based upon the *enable* parameter. Right now the function only enables the interrupt and *enable* is not used at all. So add the interrupt disable capability also using the parameter. Signed-off-by: Tarun Kanti DebBarma

[PATCH v2 4/9] gpio/omap: remove saved_wakeup field from struct gpio_bank

2012-02-29 Thread Tarun Kanti DebBarma
There is no more need to have saved_wakeup because bank-context.wake_en already holds that value. So getting rid of read/write operation associated with this field. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe

[PATCH v2 6/9] gpio/omap: fix trigger type to unsigned

2012-02-29 Thread Tarun Kanti DebBarma
, unsigned type) has the right type of parameter, the subsequent called functions set_gpio_triggering() and set_gpio_trigger() wrongly makes it signed integer. Fix this. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe Balbi ba

[PATCH v2 9/9] gpio/omap: remove suspend/resume callbacks

2012-02-29 Thread Tarun Kanti DebBarma
-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c | 47 -- 1 files changed, 0 insertions(+), 47 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 186ce92..8b4a7ba 100644 --- a/drivers/gpio/gpio

[PATCH v2 5/9] gpio/omap: get rid of retrigger variable in gpio_irq_handler

2012-02-29 Thread Tarun Kanti DebBarma
This local variable is just assigned zero and then OR'ed with isr. It does not appear to serve any purpose and so removing it. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe Balbi ba...@ti.com --- drivers/gpio/gpio

[PATCH v2 3/9] gpio/omap: remove suspend_wakeup field from struct gpio_bank

2012-02-29 Thread Tarun Kanti DebBarma
Since we already have bank-context.wake_en to keep track of gpios which are wakeup enabled, there is no need to have this field any more. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Felipe Balbi ba...@ti.com --- drivers

[PATCH 4/6] gpio/omap: get rid of retrigger variable in gpio_irq_handler

2012-02-23 Thread Tarun Kanti DebBarma
This local variable is just assigned zero and then OR'ed with isr. It does not appear to serve any purpose and so removing it. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH 6/6] gpio/omap: fix _set_gpio_irqenable implementation

2012-02-23 Thread Tarun Kanti DebBarma
This function should be capable of both enabling and disabling interrupts based upon the *enable* parameter. Right now the function only enables the interrupt and *enable* is not used at all. So add the interrupt disable capability also using the parameter. Signed-off-by: Tarun Kanti DebBarma

[PATCH 3/6] gpio/omap: remove suspend_wakeup field from struct gpio_bank

2012-02-23 Thread Tarun Kanti DebBarma
Since we already have bank-context.wake_en to keep track of gpios which are wakeup enabled, there is no need to have this field any more. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff

[PATCH 1/6] gpio/omap: remove saved_fallingdetect, saved_risingdetect fields

2012-02-23 Thread Tarun Kanti DebBarma
Since we already have context.fallingdetect and context.risingdetect there is no more need to have these additional fields. Also, getting rid of extra reads associated with them. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c | 19 --- 1

[PATCH 2/6] gpio/omap: remove saved_wakeup field from struct gpio_bank

2012-02-23 Thread Tarun Kanti DebBarma
There is no more need to have saved_wakeup. Instead we can use context.wake_en which holds the current wakeup enable register context. This also means that the read from wakeup enable register is not needed. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c

[PATCH 5/6] gpio/omap: fix trigger type to unsigned

2012-02-23 Thread Tarun Kanti DebBarma
, unsigned type) has the right type of parameter, the subsequent called functions set_gpio_triggering() and set_gpio_trigger() wrongly makes it signed integer. Fix this. Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com --- drivers/gpio/gpio-omap.c |5 +++-- 1 files changed, 3 insertions(+), 2

[PATCH 0/6] gpio/omap: Some more driver cleanup and fixes

2012-02-23 Thread Tarun Kanti DebBarma
/gpio_further_cleanup_fixes Power Test: Off-mode and Retention on OMAP3430 (Suspend and Idle paths). Functional Test: OMAP2430, OMAP3430SDP, ZOOM3, OMAP4430, OMAP4-BLAZE Tarun Kanti DebBarma (6): gpio/omap: remove saved_fallingdetect, saved_risingdetect fields gpio/omap: remove saved_wakeup field from struct

[PATCH v9 02/25] gpio/omap: use flag to identify wakeup domain

2012-02-02 Thread Tarun Kanti DebBarma
From: Charulatha V ch...@ti.com In omap3, save/restore context is implemented for GPIO banks 2-6 as GPIO bank1 is in wakeup domain. Instead of identifying bank's power domain by bank id, use 'loses_context' flag which is filled by pwrdm_can_ever_lose_context() during dev_init. For getting the

[PATCH v9 10/25] gpio/omap: cleanup set_gpio_triggering function

2012-02-02 Thread Tarun Kanti DebBarma
in set_gpio_trigger() using irqctrl. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Tarun Kanti DebBarma tarun.ka...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Tony Lindgren t...@atomide.com --- arch/arm/mach-omap1/gpio15xx.c |2 + arch/arm/mach

[PATCH v9 15/25] gpio/omap: fix bankwidth for OMAP7xx MPUIO

2012-02-02 Thread Tarun Kanti DebBarma
From: Charulatha V ch...@ti.com In all OMAP1 SoCs, the MPUIO bank width is 16 bits. But, in OMAP7xx, it is wrongly initialised to 32. Fix this. Signed-off-by: Charulatha V ch...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com Acked-by: Tony Lindgren t...@atomide.com ---

  1   2   3   4   5   6   7   >