All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: Adrian Hunter <adrian.hunter@nokia.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	Paul Walmsley <paul@pwsan.com>
Subject: Re: [PATCH/RFC 4/4] OMAP2/3 MMC: initial conversion to runtime PM
Date: Tue, 16 Feb 2010 16:50:34 -0600	[thread overview]
Message-ID: <87d404kd6t.fsf@deeprootsystems.com> (raw)
In-Reply-To: <4B6BD2FF.6050806@nokia.com> (Adrian Hunter's message of "Fri\, 05 Feb 2010 10\:12\:47 +0200")

Adrian Hunter <adrian.hunter@nokia.com> writes:

> Kevin Hilman wrote:
>> Convert the HSMMC driver to use the runtime PM layer.  A notable
>> aspect of this is that the use of the dev_attr data from the
>> omap_hwmod allows the redaction of all of the integration-specific
>> hacks inside this driver.  Regulator control has not yet been
>> converted; the driver still uses the platform_data set_power hook.
>>
>> In converting to runtime PM layer, the clock frameworks is no longer
>> used for fclk and iclk.  Instead, the runtime PM get and put functions
>> are used.  These result in calls into the OMAP runtime PM core which
>> internally uses the omap_device API to disable/re-enable the device.
>> (Note that the 2430 debounce clock is not currently handled here,
>> only the fclk and iclk are managed.)
>>
>> In addition, the context_loss tracking has been removed from the
>> driver and is now handled by omap_device + runtime PM core.  The
>> driver's ->runtime_suspend() hook will be called before device is
>> disabled, and the driver's ->runtime_resume() hook will be called if
>> context has been lost.
>>
>> Based on an initial conversion of this driver to use omap_device by
>> by Paul Walmsely: http://marc.info/?l=linux-omap&m=124419789124570&w=2
>> and then converted to use runtime PM API instead of omap_device API.
>>
>> The omap_hsmmc driver has some hacks in this version to compensate for
>> the fact that the main runtime PM core prevents runtime transitions
>> during suspend.  This prevens us from using common hooks for runtime
>> PM and static PM.  Current workaround is to hack in some extra put/get
>> calls in the suspend/resume path while this issue is being discussed
>> on linux-pm.
>>
>> Cc: Paul Walmsley <paul@pwsan.com>
>> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
>> ---
>>  arch/arm/mach-omap2/devices.c         |  152 +++++++++--------------
>>  arch/arm/mach-omap2/hsmmc.c           |   12 +-
>>  arch/arm/plat-omap/include/plat/mmc.h |    5 +
>>  drivers/mmc/host/omap_hsmmc.c         |  226 +++++++++++++++------------------
>>  4 files changed, 176 insertions(+), 219 deletions(-)
>
> Why is PM runtime not simply PM?
>
> Can pm_runtime_put_sync() and pm_runtime_get_sync() have less obscure names?

The runtime PM names are not my creation.  This is a new PM framework
in mainline that I am taking advantage of.

See:

  http://elinux.org/OMAP_Power_Management#Run-time_PM

Kevin


  reply	other threads:[~2010-02-16 22:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-04  0:51 [PATCH/RFC 0/4] convert HS-MMC driver to hwmod + runtime PM Kevin Hilman
2010-02-04  0:51 ` [PATCH/RFC 1/4] MMC: OMAP HS-MMC: convert to dev_pm_ops Kevin Hilman
2010-02-04  0:51 ` [PATCH/RFC 2/4] OMAP3EVM: MMC: enable power-saving mode Kevin Hilman
2010-02-04  0:51 ` [PATCH/RFC 3/4] OMAP: MMC (core): split device registration by OMAP Kevin Hilman
2010-02-04  0:51 ` [PATCH/RFC 4/4] OMAP2/3 MMC: initial conversion to runtime PM Kevin Hilman
2010-02-05  8:12   ` Adrian Hunter
2010-02-16 22:50     ` Kevin Hilman [this message]
2010-02-16 22:27   ` Madhusudhan
2010-02-23 23:14     ` Kevin Hilman
2010-02-04 22:51 ` [PATCH/RFC 0/4] convert HS-MMC driver to hwmod + " Kevin Hilman
2010-02-24  0:51 ` Kevin Hilman
2010-02-24 16:33   ` Madhusudhan
2010-02-25  0:23     ` Kevin Hilman
2010-02-25  8:22       ` Adrian Hunter

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=87d404kd6t.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=adrian.hunter@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.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.