devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>,
	Magnus Damm <magnus.damm@gmail.com>,
	Linux-sh list <linux-sh@vger.kernel.org>,
	Linux PM list <linux-pm@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH v2 0/6] ARM: shmobile: sh73a0: DT PM domain support
Date: Fri, 16 Jan 2015 10:13:15 +0900	[thread overview]
Message-ID: <20150116011315.GA7830@verge.net.au> (raw)
In-Reply-To: <CAMuHMdVANePZ-fLzaLCEOm0vHR735C=u5_fDa4Uywi_P5ggjBg@mail.gmail.com>

On Thu, Jan 15, 2015 at 10:32:23AM +0100, Geert Uytterhoeven wrote:
> Hi Simon,
> 
> On Thu, Jan 15, 2015 at 12:53 AM, Simon Horman <horms@verge.net.au> wrote:
> > On Wed, Jan 14, 2015 at 01:11:18PM +0100, Geert Uytterhoeven wrote:
> >> This patch series enables DT support for PM domains on the Renesas
> >> SH-Mobile AG5 (sh73a0) SoC.
> >>
> >> This series builds further on the DT PM Domain support for R-Mobile A1
> >> (r8a7740).  Due to the similarity of the SYSC System-Controller on the
> >> various SH-Mobile/R-Mobile SoCs, and the abstraction of PM domains in
> >> DT, the same driver can handle sh73a0 after some small modifications,
> >> without changing the DT bindings.
> >>
> >> Compared to r8a7740, the only significant change is the move of the
> >> memory-controller(s) to separate PM domains on sh73a0 (and also on
> >> R-Mobile APE6 (r8a73a4)). Hence a provision must be made to not turn off
> >> these PM domains inadvertently, cfr. the series "[PATCH 0/4] ARM:
> >> shmobile: Add DT support for memory controllers" I've just sent.
> >>
> >> This series has been sent before, as part of the series "[PATCH RFC
> >> 0/7] ARM: shmobile: sh73a0: DT PM domain support"
> >> (https://lkml.org/lkml/2014/11/19/404).
> >> Changes since v1 (more detailed changelogs in the individual patches):
> >>   - Factored out addition of the memory-controller in a separate
> >>     series.
> >>
> >> Dependencies:
> >>   1. Patches 1-4 (DT binding doc, C code) depend on:
> >>        a. The R-Mobile DT PM Domain work for r8a7740, queued in tag
> >>           renesas-dt-pm-for-v3.20 of Simon's repository,
> >
> > In response to a request from Olof renesas-dt-pm-for-v3.20 has been
> > withdrawn and the patches split between the soc-for-v3.20 and dt-for-v3.20
> > branches. I am assuming that the patches that 1-4 depend on are
> > now all in the soc-for-v3.20 branch. Could you check?
> 
> OK, soc-for-v3.20 now.
> 
> >>        b. "ARM: shmobile: R-Mobile: Fix DT refcount bugs in PM domain
> >>          code"
> >>          (http://www.spinics.net/lists/arm-kernel/msg391084.html),
> >
> > FWIW, I have squashed that patch into the patch that adds the problem
> > and the result is in the soc-for-v3.20. I will to push that result
> > a little later today.
> 
> Thanks!
> 
> >>   2. Patch 5 (dtsi) depends on:
> >>        a. The multiplatform work for sh73a0, queued in branch
> >>           sh73a0-multiplatform-for-v3.20 of Simon's repository,
> >>        b. Series "[PATCH 0/4] ARM: shmobile: Add DT support for memory
> >>           controllers"
> >>         (http://marc.info/?l=linux-sh&m=142123399414888).
> >
> > This may be awkward to get into v3.20 unless we can adopt a looser approach
> > to the dependencies.
> >
> > To that end I suggest that it could be queued up in the branch that has the
> > multiplatform work (a) but not the memory controller work (b) as the latter
> > seems to more naturally fit into the dt branch. What I am hoping that such
> > an approach would lead to code that compiles and boots in both branches.
> > And that new functionality becomes available when the branched are combined
> > (e.g. in v3.20-rcX).
> 
> "ARM: shmobile: sh73a0 dtsi: Add PM domain support" relies on the clocks
> properties already being present on all device nodes (incl. the Bus State
> Controller), hence it depends on sh73a0-multiplatform-for-v3.20.
> "ARM: shmobile: sh73a0 dtsi: Add PM domain support" adds a power-domains
> property to the memory-controller node, so it depends on that, too.
> 
> Leaving the memory-controller part out makes it unbootable, as the
> memory-controller will be powered down when PM domains become
> activated. Yes, hardware power domains are even more fun than (common)
> clocks when trying to split the commits across multiple branches ;-)
> 
> > If this is not possible then I can merge the pre-requisites and put
> > patch 5 on top. But I feel that the ARM SoC maintainers would prefer
> > that I didn't do that unless it is absolutely necessary.
> 
> Merging dt-for-v3.20 into sh73a0-multiplatform-for-v3.20 before applying
> patch 5 seems like the only sensible solution.

Thanks, I understand. I'll see about making it so.

> As soon as that gets combined with soc-for-v3.20, the PM domains are
> activated, and patch 6 can be applied.

Got it.

> > In case you are wondering: branch gymnastics are not my favourite pass time :^)
> >
> >>   3. Patch 6 (drivers/sh) depends on all of the above.
> >
> > That part is clear enough :)
> >
> > My intention here is to send a pull request to Linus for this change
> > once all the other patches have hit his tree. With a bit of luck that
> > would be around v3.20-rc2.
> 
> OK, that would be appied to sh-drivers-for-v3.20, right?

Yes, thats right.

> Thanks a lot!
> My local patch queue has shrunk considerably during the last few days...

:^)

  reply	other threads:[~2015-01-16  1:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-14 12:11 [PATCH v2 0/6] ARM: shmobile: sh73a0: DT PM domain support Geert Uytterhoeven
2015-01-14 12:11 ` [PATCH v2 1/6] PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding Geert Uytterhoeven
2015-01-14 12:11 ` [PATCH v2 2/6] ARM: shmobile: R-Mobile: Consolidate rmobile_pd_suspend_*() Geert Uytterhoeven
2015-01-14 12:11 ` [PATCH v2 3/6] ARM: shmobile: R-Mobile: Generalize adding/looking up special PM domains Geert Uytterhoeven
2015-01-14 12:11 ` [PATCH v2 4/6] ARM: shmobile: R-Mobile: Special-case PM domains with memory-controllers Geert Uytterhoeven
2015-01-14 12:11 ` [PATCH v2 5/6] ARM: shmobile: sh73a0 dtsi: Add PM domain support Geert Uytterhoeven
2015-01-14 12:11 ` [PATCH v2 6/6] drivers: sh: Disable PM runtime for multi-platform sh73a0 with genpd Geert Uytterhoeven
2015-01-14 23:53 ` [PATCH v2 0/6] ARM: shmobile: sh73a0: DT PM domain support Simon Horman
2015-01-15  9:32   ` Geert Uytterhoeven
2015-01-16  1:13     ` Simon Horman [this message]
2015-01-16  2:47       ` Simon Horman
2015-01-16  9:51         ` Geert Uytterhoeven
2015-01-16 12:45           ` Simon Horman
2015-01-17  1:14             ` Simon Horman
     [not found]               ` <20150117011414.GC397-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2015-01-17 14:12                 ` Geert Uytterhoeven
2015-01-22  2:55                   ` Simon Horman
2015-01-22  2:58                     ` Simon Horman

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=20150116011315.GA7830@verge.net.au \
    --to=horms@verge.net.au \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=geert@linux-m68k.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=magnus.damm@gmail.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).