From: laurent.pinchart@ideasonboard.com (Laurent Pinchart)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: shmobile: compile drivers/sh for CONFIG_ARCH_SHMOBILE_MULTI
Date: Wed, 12 Mar 2014 15:18:46 +0100 [thread overview]
Message-ID: <1783624.XEvhdtDmJe@avalon> (raw)
In-Reply-To: <CAMuHMdU4v9=BxTKk-=z4GE55KCuxuPry93OtGrTOzJ5ke8WT=g@mail.gmail.com>
Hi Geert,
On Tuesday 11 March 2014 20:15:04 Geert Uytterhoeven wrote:
> On Mon, Jan 20, 2014 at 11:52 PM, Laurent Pinchart wrote:
> > On Monday 20 January 2014 15:56:43 Mark Brown wrote:
> >> On Mon, Jan 20, 2014 at 04:48:10PM +0100, Laurent Pinchart wrote:
> >> > The problem isn't as simple as it seems, and more advanced
> >> > implementations that would allow listing clocks that should be managed
> >> > automatically (or the other way around) would also add another level of
> >> > complexity. The required information is platform-dependent, but we
> >> > currently don't express it as such in DT.
> >>
> >> Well, the set of clocks an IP requires will tend to be the same - it's
> >> normally just that integrators may have done things like tie them
> >> together or decide to spread confusion by renaming them.
> >
> > That's the problem :-) How should the runtime PM core be given the list of
> > clocks it needs to manage ? That information needs to come from somewhere.
>
> Stirring the pot again...
>
> Which clocks a device needs is expressed in DT with CCF.
> In the simple case, the runtime PM core can just control them based on
> device use.
> In the complex case, the driver can regain control using its own pm
> callbacks, right?
Sure, the driver can of course control the clocks manually in its PM callbacks
if it needs to. The point, however, is to control the clocks from core code
whenever possible. We thus need to define exact semantics to make sure each
side knows what tasks to perform, and what to expect from the other side. For
instance, in the DT case, the runtime PM core can easily get the list of the
clocks used by the device from its DT node, but how can it know which clock(s)
it should manage automatically and which clock(s) it should leave for the
driver to control ?
> Probably I'm still missing something, as I haven't had enough exposure to
> runtime PM and CCF ;-)
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2014-03-12 14:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1389707776-23306-1-git-send-email-ben.dooks@codethink.co.uk>
[not found] ` <52D7B6A8.9000302@codethink.co.uk>
[not found] ` <52D815F5.2080604@codethink.co.uk>
[not found] ` <3417477.Rj26gCLKM2@avalon>
[not found] ` <20140120114705.GL17314@sirena.org.uk>
[not found] ` <52DD0FFC.8020307@codethink.co.uk>
[not found] ` <20140120125436.GN17314@sirena.org.uk>
2014-01-20 13:19 ` [PATCH] ARM: shmobile: compile drivers/sh for CONFIG_ARCH_SHMOBILE_MULTI Ben Dooks
2014-01-20 15:48 ` Laurent Pinchart
2014-01-20 15:56 ` Mark Brown
2014-01-20 22:52 ` Laurent Pinchart
2014-03-11 19:15 ` Geert Uytterhoeven
2014-03-12 14:18 ` Laurent Pinchart [this message]
2014-03-12 15:28 ` Laurent Pinchart
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=1783624.XEvhdtDmJe@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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