mirror of https://lore.kernel.org/lkml/
 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,
	STEricsson_nomadik_linux@list.st.com
Subject: Re: Fwd: [linux-pm] Power Domain Framework
Date: Mon, 17 May 2010 13:20:50 -0700	[thread overview]
Message-ID: <1274127650.2698.159.camel@finisterre.wolfsonmicro.main> (raw)
In-Reply-To: <AANLkTiniwUDg8rQzwgm_X7EbkQJ9tHzBfVtaJRiNE9az@mail.gmail.com> (sfid-20100517_172310_177677_DDC70D3F)

On Mon, 2010-05-17 at 21:53 +0530, Sundar wrote:
> On Mon, May 17, 2010 at 8:03 PM, Mark Brown
> > On Mon, May 17, 2010 at 07:03:57PM +0530, Sundar wrote:

> > The major goal of the regulator API is to allow us to match up consumer
> > drivers with regulator drivers without having any device specific tie
> > between the two.  Pushing things that need such tie in through the API
> > breaks that.

> Aren't machine constraints, setting maximum current limit based on total loads
> similar to primitive tie ups between devices and regulator driver?

Like I say, there are similarities - it's the way the parts of the
system are connected and the level of knowledge they can have of each
other that differs.

> I am still confused about the knowledge of regulator about its consumer. How
> I see is, with the added controls, it is still devoid of any
> information about its
> clients. All that a regulator still would know is if at all there are
> any clients which

As I said in reply to the patch I am concerned that this may be an
oversimplification relative to what general hardware needs.

> require it at full load. I think the function *set_optimal_load is
> very similar to a OPP
> control mechanism. Instead of summing up load currents, now there are
> constraints.
> Probably you may look at the patch set at the end of this mail and comment.

Right, and if we could work out some generic constraints that meshed
well with the regulator API constraints it might be sensible to do this
(though it may still be more sensible to just clone the bits shared with
regulator API if there's not enough overlap in anything except really
basic stuff like enables).

> > includes a strong tie in with information about the device clocking.
> > Typically changing the operating mode will change or limit the clock
> > rates in use in various parts of the device.

> cannot these be handled with existing/new notifiers in place?

Things may start to get complicated there when the clocking and
operating points get tightly enough interlinked, and I would worry that
you'd end up spending more time faffing about with back and forth
callbacks than would be required to just implement something specific to
operating modes.


      parent reply	other threads:[~2010-05-17 20:20 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 ` Mark Brown
2010-05-16 11:13   ` Sundar
2010-05-17  3:16     ` Mark Brown
     [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               ` Mark Brown [this message]

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=1274127650.2698.159.camel@finisterre.wolfsonmicro.main \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=STEricsson_nomadik_linux@list.st.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

all inboxes | Powered by JetHome®