From: Kevin Hilman <khilman@deeprootsystems.com>
To: Thara Gopinath <thara@ti.com>
Cc: linux-omap@vger.kernel.org, paul@pwsan.com, b-cousson@ti.com,
vishwanath.bs@ti.com, sawant@ti.com
Subject: Re: [PM-SR] [PATCH] OMAP: PM: Remove the usage of vdd id's.
Date: Fri, 25 Jun 2010 11:49:06 -0700 [thread overview]
Message-ID: <87aaqjj6cd.fsf@deeprootsystems.com> (raw)
In-Reply-To: <1277391768-3361-1-git-send-email-thara@ti.com> (Thara Gopinath's message of "Thu, 24 Jun 2010 20:32:48 +0530")
Thara Gopinath <thara@ti.com> writes:
> This patch removes the usage of vdd and sr id alltogether.
> This is achieved by introducing a separte voltage domain per
> VDD and hooking this up with the voltage and smartreflex
> internal info structure. Any user of voltage or smartreflex layer
> should call into omap_volt_domain_get to get the voltage
> domain handle and make use of this to call into the various
> exported API's.
>
> These changes should be part of V2 of the sr/voltage series
> instead of being a separate patch in itself.
>
> Signed-off-by: Thara Gopinath <thara@ti.com>
[...]
> -static struct omap_sr *_sr_lookup(int srid)
> +static struct omap_sr *_sr_lookup(struct omap_volt_domain *volt_domain)
> {
> struct omap_sr *sr_info, *temp_sr_info;
>
> sr_info = NULL;
> list_for_each_entry(temp_sr_info, &sr_list, node) {
> - if (srid == temp_sr_info->srid) {
> + if (volt_domain == temp_sr_info->volt_domain) {
> sr_info = temp_sr_info;
> break;
Do we still need an _sr_lookup() function? Isn't there a single SR
instance per voltage domain?
At init time, the sr_info should be linked to the voltage domain, and
then the code can simply do:
struct omap_sr *sr_info = voltdm->sr_info;
instead of _sr_lookup.
Kevin
next prev parent reply other threads:[~2010-06-25 18:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-24 15:02 [PM-SR] [PATCH] OMAP: PM: Remove the usage of vdd id's Thara Gopinath
2010-06-25 13:15 ` Menon, Nishanth
2010-06-25 13:15 ` Menon, Nishanth
2010-06-25 18:25 ` Kevin Hilman
2010-08-04 4:31 ` Gopinath, Thara
2010-08-04 14:14 ` Cousson, Benoit
2010-08-04 21:08 ` Kevin Hilman
2010-06-25 18:49 ` Kevin Hilman [this message]
2010-06-25 21:25 ` Cousson, Benoit
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=87aaqjj6cd.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=b-cousson@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=sawant@ti.com \
--cc=thara@ti.com \
--cc=vishwanath.bs@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.