All of lore.kernel.org
 help / color / mirror / Atom feed
From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] pinctrl: sunxi: Fix recursive dependency
Date: Tue, 20 May 2014 16:51:02 +0200	[thread overview]
Message-ID: <20140520145102.GJ27329@lukather> (raw)
In-Reply-To: <4631163.YRjUDyHifq@wuerfel>

On Mon, May 19, 2014 at 04:46:03PM +0200, Arnd Bergmann wrote:
> On Monday 19 May 2014 16:29:13 Maxime Ripard wrote:
> > Hi
> > 
> > On Mon, May 19, 2014 at 01:30:54PM +0200, Arnd Bergmann wrote:
> > > On Saturday 17 May 2014 18:21:55 Maxime Ripard wrote:
> > > > Fix the following configuration error:
> > > > drivers/pinctrl/sunxi/Kconfig:3:error: recursive dependency detected!
> > > > drivers/pinctrl/sunxi/Kconfig:3:        symbol PINCTRL_SUNXI is selected by PINCTRL_SUN4I_A10
> > > > drivers/pinctrl/sunxi/Kconfig:9:        symbol PINCTRL_SUN4I_A10 default value contains PINCTRL_SUNXI
> > > > 
> > > > Drop the select on PINCTRL_SUNXI, and make PINCTRL_SUNXI enabled by default instead.
> > > > 
> > > > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> > > 
> > > I stubled over the same thing already, but came to a different conclusion.
> > > 
> > > >  drivers/pinctrl/sunxi/Kconfig | 8 +-------
> > > >  1 file changed, 1 insertion(+), 7 deletions(-)
> > > > 
> > > > diff --git a/drivers/pinctrl/sunxi/Kconfig b/drivers/pinctrl/sunxi/Kconfig
> > > > index 2007327e0c48..8411857d2a45 100644
> > > > --- a/drivers/pinctrl/sunxi/Kconfig
> > > > +++ b/drivers/pinctrl/sunxi/Kconfig
> > > > @@ -1,32 +1,26 @@
> > > >  if ARCH_SUNXI
> > > >  
> > > >  config PINCTRL_SUNXI
> > > > -       bool
> > > > +       def_bool ARCH_SUNXI
> > > >         select PINMUX
> > > >         select GENERIC_PINCONF
> > > >  
> > > >  config PINCTRL_SUN4I_A10
> > > >         def_bool PINCTRL_SUNXI || MACH_SUN4I
> > > > -       select PINCTRL_SUNXI
> > > >  
> > > 
> > > This means you won't be able to stop selecting all drivers dropping
> > > the 'select PINCTRL_SUNXI' later. How about this one?
> > 
> > I'm not sure what you mean here.
> > 
> > We won't have to select PINCTRL_SUNXI anymore with this patch either,
> > since it's already enabled whenever ARCH_SUNXI is enabled.
> > 
> > And the drivers won't have to be selected either, because they will
> > either default to PINCTRL_SUNXI, or to the MACH_SUN*I definition.
> > 
> > As I was saying in the commit log, this is just a temporary solution,
> > and eventually, and the select PINCTRL_SUNXI should be removed
> > eventually.
> 
> The difference is that in your patch, PINCTRL_SUNXI defaults to 'y'
> if ARCH_SUNXI is set, so you have to remove both the 'select' and
> the 'def_bool' and then put back the 'select PINCTRL_SUNXI' for the
> individual drivers. I guess it's not a big difference, you just end up
> doing one patch extra.

Ah, yes. I guess we can take your patch then.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140520/03ff14d9/attachment.sig>

  reply	other threads:[~2014-05-20 14:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-17 16:21 [PATCH] pinctrl: sunxi: Fix recursive dependency Maxime Ripard
2014-05-19 11:30 ` Arnd Bergmann
2014-05-19 14:29   ` Maxime Ripard
2014-05-19 14:46     ` Arnd Bergmann
2014-05-20 14:51       ` Maxime Ripard [this message]
2014-05-22 22:33   ` Linus Walleij

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=20140520145102.GJ27329@lukather \
    --to=maxime.ripard@free-electrons.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.