All of lore.kernel.org
 help / color / mirror / Atom feed
* ARCH_OMAP34XX usage in gpio PM code
@ 2010-05-05 10:55 Ranjith Lohithakshan
  2010-05-05 21:20 ` Kevin Hilman
  0 siblings, 1 reply; 2+ messages in thread
From: Ranjith Lohithakshan @ 2010-05-05 10:55 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org, Kevin Hilman

Kevin,

Most of the ARCH_OMAP34XX usage has been converted to ARCH_OMAP3,
however there is still a piece of code in gpio on PM branch that refers
ARCH_OMAP34XX

diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c
index 7b2178c..0c84aae 100644
--- a/arch/arm/plat-omap/gpio.c
+++ b/arch/arm/plat-omap/gpio.c
@@ -2095,7 +2095,7 @@ static int omap_gpio_suspend(struct sys_device
*dev, pm_me
                __raw_writel(bank->suspend_wakeup, wake_set);
                spin_unlock_irqrestore(&bank->lock, flags);

-#ifdef CONFIG_ARCH_OMAP34XX
+#ifdef CONFIG_ARCH_OMAP3
                if (bank->method == METHOD_GPIO_24XX) {
                        int j;
                        for (j = 0; j < 32; j++) {

Shouldn't we be making this change? Let me know and I will include it in
the ads7846 wakeup series.

Just ran into this when testing the ads7846 wakeup support patches and
observing that no gpio wakeup was happening. This part of the code that
was setting the wakeup pad configuration was getting excluded as
ARCH_OMAP34XX is not defined anymore.

Thanks,
Ranjith



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: ARCH_OMAP34XX usage in gpio PM code
  2010-05-05 10:55 ARCH_OMAP34XX usage in gpio PM code Ranjith Lohithakshan
@ 2010-05-05 21:20 ` Kevin Hilman
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Hilman @ 2010-05-05 21:20 UTC (permalink / raw)
  To: Ranjith Lohithakshan; +Cc: linux-omap@vger.kernel.org

Ranjith Lohithakshan <ranjithl@ti.com> writes:

> Kevin,
>
> Most of the ARCH_OMAP34XX usage has been converted to ARCH_OMAP3,
> however there is still a piece of code in gpio on PM branch that refers
> ARCH_OMAP34XX
>
> diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c
> index 7b2178c..0c84aae 100644
> --- a/arch/arm/plat-omap/gpio.c
> +++ b/arch/arm/plat-omap/gpio.c
> @@ -2095,7 +2095,7 @@ static int omap_gpio_suspend(struct sys_device
> *dev, pm_me
>                 __raw_writel(bank->suspend_wakeup, wake_set);
>                 spin_unlock_irqrestore(&bank->lock, flags);
>
> -#ifdef CONFIG_ARCH_OMAP34XX
> +#ifdef CONFIG_ARCH_OMAP3
>                 if (bank->method == METHOD_GPIO_24XX) {
>                         int j;
>                         for (j = 0; j < 32; j++) {
>
> Shouldn't we be making this change? Let me know and I will include it in
> the ads7846 wakeup series.

You're right.  Good catch.

Please submit this fix as a separate patch and I will add it to the
pm-gpio branch.

Thanks,

Kevin


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-05 21:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-05 10:55 ARCH_OMAP34XX usage in gpio PM code Ranjith Lohithakshan
2010-05-05 21:20 ` Kevin Hilman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.