From: David Brownell <david-b@pacbell.net>
To: Tero Kristo <tero.kristo@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] OMAP3: GPIO fixes for off-mode
Date: Mon, 1 Dec 2008 11:26:54 -0800 [thread overview]
Message-ID: <200812011126.55412.david-b@pacbell.net> (raw)
In-Reply-To: <1228131512-12099-2-git-send-email-tero.kristo@nokia.com>
On Monday 01 December 2008, Tero Kristo wrote:
> Off mode is now using the omap2 retention fix code for scanning GPIOs
> only during off-mode transitions. All the *non_wakeup_gpios variables
> are now used for off-mode transition tracking on OMAP3. This patch fixes
> cases where GPIO state changes are missed during off-mode.
I second the "no #ifdefs" comment ...
Could you uplevel your description here a bit? I'm trying to
understand if what this does is complete and correct.
My understanding is that we currently have several mechanisms
interacting to affect things that relate to the OMAP3-only
"off" modes for pins used as GPIOs:
- irq_chip.set_wake() calls, for GPIOs used as IRQs.
We should assume that if the IRQ is wake-enabled, that
applies to OFF mode too. (AFAICT, this mechanism is
not handled by this patch.)
- Hmm, and because a goal is to transparently enter OFF
modes to save power, rather than only after drivers
get suspend() calls that tend to trigger set_wake(),
an un-commented conclusion seems to be that all GPIOs
used as IRQs implicitly act like set_wake() was called.
(Something which *is* partially addressed here.)
- omap_cfg_reg() configuration for any pin can include
its OFF-mode parameters. Virtually unused ... and
not addressed by this patch, so I'm puzzled how pins
are expected to be kept active with just this patch.
- OMAP2-specific bug workarounds, some GPIOs can't be
used for wakeup, ergo bank->non_wakeup_gpios. This
is resolved for OMAP3, yes?
When I looked at this issue a while back, I came to believe
that we'd need to map GPIOs to their config registers so
we could diddle the OFF-mode bits. And I don't see such
a mapping (table) here...
- Dave
next prev parent reply other threads:[~2008-12-01 19:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-01 11:38 Resending: OMAP3 GPIO fixes for off-mode Tero Kristo
2008-12-01 11:38 ` [PATCH] OMAP3: " Tero Kristo
2008-12-01 15:56 ` Kevin Hilman
2008-12-01 19:26 ` David Brownell [this message]
2008-12-02 9:56 ` Tero.Kristo
-- strict thread matches above, loose matches on Subject: below --
2008-12-22 12:27 Tero Kristo
2009-01-07 23:35 ` Kevin Hilman
2008-11-27 11:54 Tero Kristo
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=200812011126.55412.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=linux-omap@vger.kernel.org \
--cc=tero.kristo@nokia.com \
/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 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.