All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cousson, Benoit" <b-cousson@ti.com>
To: "Gopinath, Thara" <thara@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"paul@pwsan.com" <paul@pwsan.com>,
	"Sripathy, Vishwanath" <vishwanath.bs@ti.com>,
	"Sawant, Anand" <sawant@ti.com>
Subject: Re: [PM-SR] [PATCH] OMAP: PM: Remove the usage of vdd id's.
Date: Wed, 04 Aug 2010 16:14:01 +0200	[thread overview]
Message-ID: <4C5975A9.4010008@ti.com> (raw)
In-Reply-To: <5A47E75E594F054BAF48C5E4FC4B92AB0323E68CC7@dbde02.ent.ti.com>

On 8/4/2010 6:31 AM, Gopinath, Thara wrote:
>>> From: Kevin Hilman [mailto:khilman@deeprootsystems.com]
>>> Sent: Friday, June 25, 2010 11:56 PM
>>>
>>> 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.
>>>
>>> Great, I'm glad to see those gone.
>>>
>>> Minor comment on naming:
>>>
>>> In current code, we currently have
>>>
>>>    struct clockdomain *clkdm;
>>>    struct powerdomain *pwrdm;
>>>
>>> so, for consistency, I'd suggest using
>>>
>>>    struct voltagedomain *voltdm;
>>>
>>> instead of this:
>>>
>>>    struct omap_volt_domain *volt_domain;
>>>
>>>
>>> Also, it looks like your 'struct omap_vdd_info' is the real struct that
>>> represents a voltage domain.
>>>
>>> Maybe you're planning this already, but I suggest you get rid of
>>> omap_vdd_info and just move all that stuff into the voltagedomain.
>>> Again, that will probably create a diff with a ton of renames, so this
>>> should just be part of your V2 series.
>
> Are you sure? Because omap_vdd_info contains all the internal details about the
> voltage domains. Do we really want to expose it? IMHO omap_vdd_info should remain as
> internal structure instead of exposing it out.

I think as well that struct voltagedomain should be a soc generic 
representation of the voltage domain, whereas omap_vdd_info will contain 
all the soc specific details.
The issue with voltage domain, is that the compared to clockdomain and 
powerdomain, the details are quite different between OMAP2, 3 and 4.
OMAP2 does not have any VP, VC, SR, so in this case, the voltagedomain 
should be almost empty whereas OMAP3 will contain much more stuff. OMAP4 
should be pretty similar.

That being said, since we have only 1 scalable voltage domain on OMAP2, 
we can still manage the overhead.

Benoit



  reply	other threads:[~2010-08-04 14:14 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 [this message]
2010-08-04 21:08       ` Kevin Hilman
2010-06-25 18:49 ` Kevin Hilman
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=4C5975A9.4010008@ti.com \
    --to=b-cousson@ti.com \
    --cc=khilman@deeprootsystems.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.