From: Kevin Hilman <khilman@deeprootsystems.com>
To: "Varadarajan, Charulatha" <charu@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: OMAP Runtime APIs
Date: Mon, 10 May 2010 08:45:15 -0700 [thread overview]
Message-ID: <87ljbrlq0k.fsf@deeprootsystems.com> (raw)
In-Reply-To: <EAF47CD23C76F840A9E7FCE10091EFAB02C5387CE0@dbde02.ent.ti.com> (Charulatha Varadarajan's message of "Fri\, 7 May 2010 17\:30\:08 +0530")
Hi Charu,
"Varadarajan, Charulatha" <charu@ti.com> writes:
> While adapting some drivers to HWMOD way, I tried using pm_runtime
> APIs. My understanding is that instead of using clock FW APIs or
> omap_device APIs, we can make use of pm_runtime APIs.
>
> But, I observed that pm_runtime_enable() does not enable the clocks
> (fck/ick).
pm_runtime_enable() is not the equivalent of enabling the clocks.
This function simply enables runtime PM _functionality_ for that
device, it doesn't actually do any HW manipulation.
The way that clocks are enabled/disabled is by using the
pm_runtime_get*() and pm_runtime_put*() calls. These do usage couting
in the runtime PM core and when there's a zero use-count, then
pm_runtime_idle() is called which will use omap_device API to disable
the clocks. Similar for the enable path.
[...]
> I am using origin/pm-wip/runtime branch with patches to adapt
> watchdog to HWMOD FW on top of.
>
> I use "omap3_defconfig" and test on 3430SDP.
>
> On mmc branch I am working on top of the following commit:
> commit fe64f0fab492651d7f9296b9d830f2c11844b546
> Author: Kevin Hilman <khilman@deeprootsystems.com>
> Date: Wed Jan 20 09:48:52 2010 -0800
>
> OMAP2/3 MMC: initial conversion to runtime PM
>
I recommend you look at the details of this patch you will see that
the clock enable/disable calls were replaced by runtime PM _get() and
_put() calls.
The _enable() call is just done at _probe() time.
Hope that helps,
Kevin
next prev parent reply other threads:[~2010-05-10 15:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-08 10:57 [PATCH V2] OMAP: GPIO: Fix OMAP4 GPIO reg access issues Charulatha V
2010-05-05 13:59 ` Varadarajan, Charulatha
2010-05-05 21:41 ` Kevin Hilman
2010-05-07 12:00 ` OMAP Runtime APIs Varadarajan, Charulatha
2010-05-10 15:45 ` Kevin Hilman [this message]
2010-05-12 0:13 ` [APPLIED] [PATCH V2] OMAP: GPIO: Fix OMAP4 GPIO reg access issues Tony Lindgren
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=87ljbrlq0k.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=charu@ti.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 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.