linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Sundar <sunder.svit@gmail.com>
Cc: Deepak Sikri <deepak.sikri79@gmail.com>,
	viresh.kumar@st.com, rajeev-dlh.kumar@st.com,
	armando.visconti@st.com, linux-kernel@vger.kernel.org,
	vipin.kumar@st.com, shiraz.hashim@st.com,
	linux-pm@lists.linux-foundation.org,
	linus.walleij@stericsson.com
Subject: Re: [linux-pm] Power Domain Framework
Date: Sun, 16 May 2010 20:16:16 -0700	[thread overview]
Message-ID: <20100517031613.GA3130@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <AANLkTikyqnKDNz7FIUvLDAvBReHskHvRCrEz2qBBqseH@mail.gmail.com>

On Sun, May 16, 2010 at 04:43:52PM +0530, Sundar wrote:

Please don't top post, it breaks the thread of discussion.

> However, for working with power domains within the framework, I feel that,
> - support must be added to allow additional domain-specific states
> like retention, idle etc.

I'm really not convinced that this is a good idea.  Generally I suspect
the implementations of these concepts that I've seen would introduce
layering violations if done via the regulator API - from what I've seen
the power domains can end up knowing rather more about the things that
are being powered than is healthy for the regulator API and...

> - controlling operating points for regulators, unlike setting optimal modes.
> - controlling regulator modes via constraints enforced by clients and
> managing transition to various states through the client requests and
> pushing the client states up to the parent regulator.

...knowing a lot about the specifics of the internal structures of the
device you're trying to model.  Cross talk with the clock API also seems
fairly common here.

I do think it's likely that you'll want something that looks like the
regulator API at the edges, but that a separate implementation that
avoids having to shoehorn through the abstractions of the regulator API
for the on-chip work seems much more sensible (and is what OMAP and SH
are already doing).  This is fairly similar to the relationship between
the clock and regulator APIs - they look a lot alike, especially from a
user point of view, but they are separate because there are enough
differences in what they are trying to represent to make it sensible to
keep them apart.

However, if you have patches it's probably easier to talk about those
than architecture astronauting; perhaps your implementation avoids my
concerns.

  reply	other threads:[~2010-05-17  3:16 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTinZU1D1rMOBQDi47tRhXrOXwduQIdni7bCXdce0@mail.gmail.com>
2010-05-10 14:05 ` [linux-pm] Power Domain Framework Mark Brown
2010-05-16 11:13   ` Sundar
2010-05-17  3:16     ` Mark Brown [this message]
     [not found]       ` <AANLkTimDdBCnRFMDiUkuNKanOzuPNwCpfRv9Gsi03Lsy@mail.gmail.com>
2010-05-17 13:33         ` Fwd: " Sundar
2010-05-17 14:33           ` Mark Brown
2010-05-17 16:23             ` Sundar
2010-05-17 16:35               ` Sundar R Iyer
2010-05-17 17:04                 ` Mark Brown
2010-05-17 17:45                   ` Sundar R Iyer
2010-05-17 20:38                     ` Linus WALLEIJ
2010-05-17 21:18                       ` Mark Brown
2010-05-17 21:46                         ` Linus WALLEIJ
2010-05-17 22:17                           ` Mark Brown
2010-05-18  6:00                             ` Sundar R Iyer
     [not found]                               ` <AANLkTinTdTp_X4lGtZ0hCaVJN5GmvI0tXR1RTRkRNkjN@mail.gmail.com>
2010-05-24  3:39                                 ` Mark Brown
2010-05-26  8:33                                   ` Sundar R IYER
2010-05-26 21:07                                     ` Mark Brown
2010-05-27  3:01                                       ` Paul Mundt
2010-05-27  6:51                                         ` Mark Brown
2010-05-17 20:20               ` Fwd: " Mark Brown

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=20100517031613.GA3130@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=armando.visconti@st.com \
    --cc=deepak.sikri79@gmail.com \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=rajeev-dlh.kumar@st.com \
    --cc=shiraz.hashim@st.com \
    --cc=sunder.svit@gmail.com \
    --cc=vipin.kumar@st.com \
    --cc=viresh.kumar@st.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).