linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v2 02/02] ARM: shmobile: r8a7740: Multiplatform support
Date: Wed, 27 Aug 2014 00:09:31 +0000	[thread overview]
Message-ID: <20140827000927.GC8950@verge.net.au> (raw)
In-Reply-To: <20140825033653.9284.94459.sendpatchset@w520>

On Tue, Aug 26, 2014 at 06:36:50PM +0900, Magnus Damm wrote:
> Hi Simon,
> 
> On Tue, Aug 26, 2014 at 5:58 PM, Simon Horman <horms@verge.net.au> wrote:
> > On Tue, Aug 26, 2014 at 09:47:37AM +0200, Geert Uytterhoeven wrote:
> >> On Tue, Aug 26, 2014 at 6:40 AM, Simon Horman <horms@verge.net.au> wrote:
> >> > On Tue, Aug 26, 2014 at 11:40:12AM +0900, Simon Horman wrote:
> >> >> On Mon, Aug 25, 2014 at 12:36:53PM +0900, Magnus Damm wrote:
> >> >> > From: Magnus Damm <damm+renesas@opensource.se>
> >> >> >
> >> >> > Enable r8a7740 Multiplatform support for the generic r8a7740
> >> >> > machine vector. No board support is enabled, and the board
> >> >> > code for Armadillo 800 EVA DT Reference is left by itself.
> >> >>
> >> >> I would still like some discussion of weather using
> >> >> #if defined(CONFIG_PM) && !defined(CONFIG_ARCH_MULTIPLATFORM)
> >> >> is the best way to go.
> >> >>
> >> >> It seems to me that it would be cleaner to add a new Kconfig symbol or two.
> >> >>
> >> >> E.g. CONFIG_RMOBILE_PM which depends on CONFIG_PM and CONFIG_HAS_RMOBILE_PM
> >> >> and then allow SoC or board Kconfig stanzas to select CONFIG_HAS_RMOBILE_PM.
> >> >
> >> > I am confused.
> >> >
> >> > I see that in "[PATCH v2 05/05] ARM: shmobile: Cleanup pm-rmobile.o build
> >> > using Kconfig" you propose adding PM_RMOBILE but it isn't used in this
> >> > series.
> >>
> >> PM_RMOBILE controls the build of pm-rmobile.c, while the new #ifdefs are
> >> in the r8a7740-specific code in pm-r8a7740.c.
> >
> > Ok, that seems clear.
> >
> > I object less to !defined(CONFIG_ARCH_MULTIPLATFORM) in pm-r8a7740.c
> > as it is specific to one SoC that doesn't support pm+multilpatform (yet).
> > But it still seems to me that it would be cleaner if either PM_RMOBILE
> > was re-used here or another Kconfig symbol was added.
> 
> While I agree about cleaning up code in general I'm not sure if just
> keep on inventing new Kconfig symbols is the absolute best way
> forward. =)
> 
> If someone can think about how to clean up the PM bits as a separate
> topic then that would of course be greatly appreciated!
> 
> Historically the PM bits have been kind of messy in general, but now
> we do have PM_RMOBILE which may improve the situation.
> 
> The question from my side is more why we would want to postpone
> multiplatform any further?

After speaking with Magnus over the phone I now understand and
agree with his concern about a potential explosion of Kconfig symbols.

Accordingly I have queued up this series with the understanding that some
effort will be made to untangle the Kconfig/ifdef and other mess
surrounding PM. And in particular to examine the possibility or re-using
PM_RMOBILE in pm-r8a7740.c and other locations.

      parent reply	other threads:[~2014-08-27  0:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-25  3:36 [PATCH v2 02/02] ARM: shmobile: r8a7740: Multiplatform support Magnus Damm
2014-08-26  2:40 ` Simon Horman
2014-08-26  4:40 ` Simon Horman
2014-08-26  7:47 ` Geert Uytterhoeven
2014-08-26  8:58 ` Simon Horman
2014-08-26  9:36 ` Magnus Damm
2014-08-27  0:09 ` Simon Horman [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=20140827000927.GC8950@verge.net.au \
    --to=horms@verge.net.au \
    --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).