From: Magnus Damm <magnus.damm@gmail.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH/RFC] ARM: mach-shmobile: sh7372 power domain prototype
Date: Mon, 18 Apr 2011 09:41:18 +0000 [thread overview]
Message-ID: <BANLkTikBezY9oRGCT7iExYOMHJ=NFQuFSg@mail.gmail.com> (raw)
In-Reply-To: <20110411194911.7991.79950.sendpatchset@t400s>
Hi Rafael,
2011/4/12 Rafael J. Wysocki <rjw@sisk.pl>:
> Hi,
>
> To start with, I think we'll need to do that a bit differently, because
> apparently some clock management code may be shared with OMAP.
>
> Most imprtantly, the PM core is going to be changed so that power domain
> callbacks will be executed instead of and not in addition to the bus type
> callbacks, so platform_pm_runtime_suspend() and platform_pm_runtime_resume()
> will have to be replaced by the power domain callbacks entirely.
>
> I'm working on those changes right now, but I'd like to make the core
> changes first and get everybody involved to agree with them.
Thanks for your help!
> Some more comments below.
[snip]
> The above things don't look quite right. I think the connections between
> device objects and power domain objects should be set up in the board file.
Yes, no doubt about that!!!
> This doesn't look nice to me.
I have to agree with you on that one. =)
This prototype code is rather filthy and can easily be seen as one big
layering violation.
However, just so you understand the reason behind this:
I simply posted the patch to publish _some_ code that exercises the
Runtime PM callbacks in combination with a bit of power domain code.
This so anyone with sh7372 can do some simple testing of drivers using
Runtime PM.
I'd like to see the drivers hardened in parallel with Runtime PM power
domain support. When we have something nicer we will of course switch
to using that. Feel free to post a better version that is properly
abstracted. =)
Thanks,
/ magnus
next prev parent reply other threads:[~2011-04-18 9:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-11 19:49 [PATCH/RFC] ARM: mach-shmobile: sh7372 power domain prototype Magnus Damm
2011-04-11 22:45 ` Rafael J. Wysocki
2011-04-15 19:35 ` Guennadi Liakhovetski
2011-04-18 9:41 ` Magnus Damm [this message]
2011-04-18 20:08 ` Rafael J. Wysocki
2011-04-19 10:55 ` Guennadi Liakhovetski
2011-04-21 7:37 ` Guennadi Liakhovetski
2011-04-29 17:19 ` Guennadi Liakhovetski
2011-04-29 20:16 ` Rafael J. Wysocki
2011-04-30 1:02 ` Rafael J. Wysocki
2011-05-03 8:22 ` Guennadi Liakhovetski
2011-05-03 22:37 ` Rafael J. Wysocki
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='BANLkTikBezY9oRGCT7iExYOMHJ=NFQuFSg@mail.gmail.com' \
--to=magnus.damm@gmail.com \
--cc=linux-sh@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).