public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Tero.Kristo@nokia.com, linux-omap@vger.kernel.org
Subject: Re: [PATCH] OMAP3: GPIO: Added dynamic control logic for pad wakeups
Date: Tue, 9 Mar 2010 12:01:04 -0800	[thread overview]
Message-ID: <20100309200104.GB2900@atomide.com> (raw)
In-Reply-To: <87vdd5nvmx.fsf@deeprootsystems.com>

* Kevin Hilman <khilman@deeprootsystems.com> [100309 11:23]:
> Tony Lindgren <tony@atomide.com> writes:
> 
> > * Tero.Kristo@nokia.com <Tero.Kristo@nokia.com> [100309 00:20]:
> >> >
> >> >Changes in wakeup state should not be directly correlated to interrupt
> >> >enabled GPIOs.  Rather, this should only be done for GPIOs that are
> >> >explicitly wakeup enabled (via enable_irq_wake(), which in turn
> >> >calls gpio_wake_enable()).
> >> 
> >> This logic somehow escapes me... I would guess drivers should not care during dynamic idle whether the device is in off/ret/ina and interrupts should just work. This is done to make this happen. Also, I understood that gpio wakeup logic is needed for the suspend wakeup, which is quite different from dynamic idle wakeup.
> >> 
> >> However, if this is intended behavior for the kernel, then I will accept it. You are saying the code below should be moved into the gpio_wake_enable() / disable() calls?
> >
> > I agree. I'd assume during the idle modes we want everything to
> > automatically wake the system up. Otherwise we again have non-standard
> > Linux behaviour that's mysterious to track down. The enable_irq_wake
> > should only be needed for suspend states.
> 
> OK, then essentially all GPIO IRQs need to be configured in the
> equivalent of an enable_irq_wake'd state by default.  That means
> IO pad wakeups *and* module-level wakeups.
> 
> Upon suspend, the ability to wakeup should be removed for all except
> for those that have been explicitly enabled via enable_irq_wake().

That sounds pretty good to me.

Tony

      reply	other threads:[~2010-03-09 19:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-16 12:23 [PATCH] OMAP3: GPIO: Added dynamic control logic for pad wakeups Tero Kristo
2010-03-08 17:06 ` Kevin Hilman
2010-03-09  8:24   ` Tero.Kristo
2010-03-09 18:57     ` Kevin Hilman
2010-03-09 19:01     ` Tony Lindgren
2010-03-09 19:27       ` Kevin Hilman
2010-03-09 20:01         ` Tony Lindgren [this message]

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=20100309200104.GB2900@atomide.com \
    --to=tony@atomide.com \
    --cc=Tero.Kristo@nokia.com \
    --cc=khilman@deeprootsystems.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