From: Kevin Hilman <khilman@ti.com>
To: Kalle Jokiniemi <kalle.jokiniemi@nokia.com>
Cc: linux-omap@vger.kernel.org, tony@atomide.com,
ilkka.koskinen@nokia.com, wim@iguana.be
Subject: Re: [PATCH 0/2] omap_wdt: fix interface clock handling
Date: Tue, 08 Mar 2011 09:08:11 -0800 [thread overview]
Message-ID: <87bp1lv8uc.fsf@ti.com> (raw)
In-Reply-To: <1299589583-22632-1-git-send-email-kalle.jokiniemi@nokia.com> (Kalle Jokiniemi's message of "Tue, 8 Mar 2011 15:06:21 +0200")
Kalle Jokiniemi <kalle.jokiniemi@nokia.com> writes:
> The runtime PM does not offer enough granularity to control
> individual clocks separately as needed. Current pm implementation
> of omap_wdt blocks the CORE power domain from idling in
> OMAP SoC, as it keeps the interface clock of the watchdog always
> on. This causes severe power leakage in devices where
> the omap watchdog is in active use.
The iclk remains active because it's in hardware-controlled
auto-idle mode.
I believe if you set the WDT hwmod to software-supported idle
(OCPIF_SWSUP_IDLE), the runtime PM idle (which calls omap_device idle,
then omap_hwmod_idle) should also gate the interface clock.
> This patch set reverts the omap_wdt move to runtime_pm and
> introduces a tight control of the interface clock in the driver
> to only enable it when registers are accessed. The patch is
> based on earlier patch by Atal Shargorodsky.
>
> If anyone has good suggestions how to fix this with runtime_pm,
> feel free to propose patches. Otherwise I suggest we revert
> back to something that works.
Can you try with software-supported idle and just making the runtime PM
calls more granular?
Kevin
> Tested with RX-51 S4.0 Macroboard, linux-omap-pm/pm branch and
> MeeGo armv7l release.
>
> Kalle Jokiniemi (2):
> Revert "OMAP: WDT: Use PM runtime APIs instead of clk FW APIs"
> Watchdog: omap_wdt: fix interface clock handling
>
> drivers/watchdog/omap_wdt.c | 64 +++++++++++++++++++++++++++++++++++++------
> 1 files changed, 55 insertions(+), 9 deletions(-)
next prev parent reply other threads:[~2011-03-08 17:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 13:06 [PATCH 0/2] omap_wdt: fix interface clock handling Kalle Jokiniemi
2011-03-08 13:06 ` [PATCH 1/2] Revert "OMAP: WDT: Use PM runtime APIs instead of clk FW APIs" Kalle Jokiniemi
2011-03-08 13:06 ` [PATCH 2/2] Watchdog: omap_wdt: fix interface clock handling Kalle Jokiniemi
2011-03-08 23:04 ` Paul Walmsley
2011-03-08 17:08 ` Kevin Hilman [this message]
2011-03-08 23:01 ` [PATCH 0/2] " Paul Walmsley
2011-03-08 23:10 ` Paul Walmsley
2011-03-09 9:02 ` kalle.jokiniemi
2011-03-09 10:02 ` Cousson, Benoit
2011-03-09 10:40 ` kalle.jokiniemi
2011-03-09 11:33 ` kalle.jokiniemi
2011-03-09 14:06 ` kalle.jokiniemi
2011-03-10 8:20 ` kalle.jokiniemi
2011-03-09 6:35 ` kalle.jokiniemi
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=87bp1lv8uc.fsf@ti.com \
--to=khilman@ti.com \
--cc=ilkka.koskinen@nokia.com \
--cc=kalle.jokiniemi@nokia.com \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.com \
--cc=wim@iguana.be \
/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