public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Stone <daniel.stone@nokia.com>
To: ext Jouni Hogander <jouni.hogander@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [RFC] OMAP3: GPIO: Enable debounce clock only when debounce is enabled
Date: Fri, 12 Sep 2008 14:11:33 +0300	[thread overview]
Message-ID: <20080912111133.GA7799@intune.research.nokia.com> (raw)
In-Reply-To: <1221216698-22327-1-git-send-email-jouni.hogander@nokia.com>

[-- Attachment #1: Type: text/plain, Size: 1291 bytes --]

On Fri, Sep 12, 2008 at 01:51:38PM +0300, ext Jouni Hogander wrote:
> This patch changes gpio "driver" to enable debounce clock for
> gpio-bank only when debounce is enabled for some gpio in that bank.
> 
> This patch obsoletes "PM: Dynamic GPIO clock handling" patch. Nasty
> side effect is that gpios in per domain aren't capable to generate
> wake-up if per domain is in sleep state. Anyway keeping dbcks enabled
> all the time isn't either good way to workaround this problem. For
> this we need to use iopad wake-up. Currently enabling iopad wakeup
> mechanism for gpio pads is left for bootloader or kernel (depending
> which one does the configuration)
> 
> Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
> ---
>  arch/arm/plat-omap/gpio.c |   26 +++++++++++++++++---------
>  1 files changed, 17 insertions(+), 9 deletions(-)
> 
> diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c
> index 0e74103..da164d8 100644
> --- a/arch/arm/plat-omap/gpio.c
> +++ b/arch/arm/plat-omap/gpio.c
> @@ -152,6 +152,9 @@ struct gpio_bank {
>  	u32 level_mask;
>  	spinlock_t lock;
>  	struct gpio_chip chip;
> +#if defined(CONFIG_ARCH_OMAP3)
> +	struct clk *dbck
                        ^
                        ;
> +#endif

Cheers,
Daniel

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-09-12 11:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-12 10:51 [RFC] OMAP3: GPIO: Enable debounce clock only when debounce is enabled Jouni Hogander
2008-09-12 11:11 ` Daniel Stone [this message]
2008-09-12 14:34 ` Paul Walmsley
2008-09-15  8:52 ` [PATCH] " Jouni Hogander
2008-09-16 10:58   ` Kevin Hilman
2008-09-16 12:16     ` [PATCH] OMAP3: GPIO: Enable debounce clock only when debounce is enabled v2 Jouni Hogander
2008-09-16 12:19       ` Paul Walmsley
2008-09-16 12:32         ` Högander Jouni
2008-09-16 12:36           ` Paul Walmsley
2008-09-16 12:51             ` [PATCH] OMAP3: GPIO: Enable debounce clock only when debounce is enabled v3 Jouni Hogander
2008-09-16 12:59               ` Paul Walmsley
2008-09-25 10:28                 ` Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080912111133.GA7799@intune.research.nokia.com \
    --to=daniel.stone@nokia.com \
    --cc=jouni.hogander@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox