From: Santosh Shilimkar <santosh.shilimkar@ti.com>
To: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
Cc: khilman@deeprootsystems.com, grant.likely@secretlab.ca,
linus.walleij@linaro.org, balbi@ti.com,
linux-omap@vger.kernel.org, daniel@zonque.org
Subject: Re: [PATCH v3 2/3] gpio/omap: modify wake-up register with interrupt enable.
Date: Wed, 15 May 2013 18:11:55 +0530 [thread overview]
Message-ID: <51938293.7030506@ti.com> (raw)
In-Reply-To: <1368564867-11142-2-git-send-email-andreas.fenkart@streamunlimited.com>
On Wednesday 15 May 2013 02:24 AM, Andreas Fenkart wrote:
> OMAP4430 TRM chap. 25.4.5.2
> To reduce dynamic consumption, an efficient idle scheme is based on the
> following:
> • An efficient local autoclock gating for each module
> • The implementation of control sideband signals between the PRCM module
> and each module
> This enhanced idle control allows clocks to be activated and deactivated
> safely without requiring complex software management. The idle mode
> request, idle acknowledge, and wake-up request are sideband signals
> between the PRCM module and the general-purpose interface
>
> OMAP4430 TRM chap. 25.4.6.2
> There must be a correlation between the wake-up enable and interrupt
> enable register. If a GPIO pin has a wake-up configured on it, it must
> also have the corresponding interrupt enabled. Otherwise, it is possible
> there is a wake-up event, but after exiting the IDLE state, no interrupt
> is generated; the corresponding bit from the interrupt status register is
> not cleared, and the module does not acknowledge a future idle request.
>
> Up to now _set_gpio_triggering() is also handling the wake-up enable
> register. According the TRM this should be in sync with the interrupt
> enable. Wakeup is still enabled by default, since the module would not
> wake from idle otherwise.
> The enabled_wakeup_gpios was introduced to remember an explicit
> _set_gpio_wakeup beyond a mask/unmask cycle. Calling the flag flag
> disabled_wakeup_gpios would spare the problem of initializing it, but
> feels very unnatural to read.
>
> Wakeup functionality is completely untested, since the AM335x
> lacks a IRQWAKEN register.
>
> Signed-off-by: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
> ---
I am ok with the subject patch and other two patches.
Would be good to get a tested by at least for though for OMAP4
and OMAP3. I have no access to boards for few weeks so
can't test it myself.
Other than that, for all three patches,
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-05-15 12:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-14 20:54 [PATCH v3 1/3] gpio/omap: replace open coded read-modify-write with _gpio_rmw function Andreas Fenkart
2013-05-14 20:54 ` [PATCH v3 2/3] gpio/omap: modify wake-up register with interrupt enable Andreas Fenkart
2013-05-15 12:41 ` Santosh Shilimkar [this message]
2013-05-31 22:58 ` Kevin Hilman
2013-05-14 20:54 ` [PATCH v3 3/3] gpio/omap: split irq_mask callback fucntion into irq_disable/irq_mask Andreas Fenkart
2013-05-30 14:30 ` [PATCH v3 1/3] gpio/omap: replace open coded read-modify-write with _gpio_rmw function Kevin Hilman
2013-05-31 8:01 ` Andreas Fenkart
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=51938293.7030506@ti.com \
--to=santosh.shilimkar@ti.com \
--cc=andreas.fenkart@streamunlimited.com \
--cc=balbi@ti.com \
--cc=daniel@zonque.org \
--cc=grant.likely@secretlab.ca \
--cc=khilman@deeprootsystems.com \
--cc=linus.walleij@linaro.org \
--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