All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@linaro.org>
To: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
Cc: santosh.shilimkar@ti.com, grant.likely@secretlab.ca,
	linus.walleij@linaro.org, balbi@ti.com,
	linux-omap@vger.kernel.org, daniel@zonque.org, jon-hunter@ti.com
Subject: Re: [PATCH v3 2/3] gpio/omap: modify wake-up register with interrupt enable.
Date: Fri, 31 May 2013 15:58:55 -0700	[thread overview]
Message-ID: <874ndiycwg.fsf@linaro.org> (raw)
In-Reply-To: <1368564867-11142-2-git-send-email-andreas.fenkart@streamunlimited.com> (Andreas Fenkart's message of "Tue, 14 May 2013 22:54:26 +0200")

Andreas Fenkart <andreas.fenkart@streamunlimited.com> writes:

> 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.

There's a lot of description here, but it still fails to describe the
problem that is being solved and the motiviation for this change.  

> Wakeup functionality is completely untested, since the AM335x
> lacks a IRQWAKEN register.

So in addtion to a better description of the problem, and the changes,
this needs much broader testing, including on platforms with off-mode.

Kevin
--
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

  parent reply	other threads:[~2013-05-31 22:58 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
2013-05-31 22:58   ` Kevin Hilman [this message]
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=874ndiycwg.fsf@linaro.org \
    --to=khilman@linaro.org \
    --cc=andreas.fenkart@streamunlimited.com \
    --cc=balbi@ti.com \
    --cc=daniel@zonque.org \
    --cc=grant.likely@secretlab.ca \
    --cc=jon-hunter@ti.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=santosh.shilimkar@ti.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.