From: Alexander Stein <alexanders83@web.de>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Randy Dunlap <rdunlap@infradead.org>,
Stephen Rothwell <sfr@canb.auug.org.au>,
linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-gpio@vger.kernel.org,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
"Linus Walleij (linus.walleij@linaro.org)"
<linus.walleij@linaro.org>
Subject: Re: Re: linux-next: Tree for Jun 27 (pinctrl && !CONFIG_OF)
Date: Wed, 29 Jun 2016 07:54:29 +0200 [thread overview]
Message-ID: <7003426.R6hER1qrYx@ws-stein> (raw)
In-Reply-To: <3990550.tEk9cGVQPW@wuerfel>
On Tuesday 28 June 2016, 10:37:52 wrote Arnd Bergmann:
> > > I think the commit should just be reverted, it clearly breaks
> > > stuff, and whatever needs it can be fixed in a better way.
> >
> > Why not depend PINCTRL_IPROC_GPIO on CONFIG_OF as Randy stated
> > pinconf_generic_dt_node_to_map_pin and friends are only present if
CONFIG_OF
> > is enabled. Depending on OF_GPIO only is enough under the assumption a)
you
> > made below.
> > Also what about providing dummy implementation for those missing function
in
> > case CONFIG_OF is disabled, my preference as more code can be compile
tested.
> >
> > > Specifically, we have three ways that the OF_GPIO symbol
> > > is used:
> > >
> > > a) it is implicitly enabled when both GPIOLIB and OF are turned on
> >
> > or if COMPILE_TEST is enabled
> >
> > I think a problem in this and possibly other cases is that COMPILE_TEST
> > loosens the Kconfig dependencies to some degree. How to proceed? Allow
compile
> > testing drivers only if some optional settings are enabled?
>
> I think we can start by reverting your patch: for compile-testing we can
> always enable CONFIG_OF these days, which will also turn on OF_GPIO.
My intention was to compile test (device tree) drivers also without CONFIG_OF
which is disabled by defconfig default on arch/x86/configs/*
> Compile-testing drivers that need OF_GPIO while OF is disabled makes
> no sense to me, it's not a configuration that anybody can ever use
> and it adds no build coverage.
That seems sensible. If we can agree that anyone who wants to compile test
drivers has to enable CONFIG_OF even it is not needed for the current
configuration.
Best regards,
Alexander
next prev parent reply other threads:[~2016-06-29 6:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-27 6:39 linux-next: Tree for Jun 27 Stephen Rothwell
2016-06-27 18:15 ` linux-next: Tree for Jun 27 (pinctrl && !CONFIG_OF) Randy Dunlap
2016-06-27 21:36 ` Arnd Bergmann
2016-06-28 7:00 ` Alexander Stein
2016-06-28 8:25 ` Randy Dunlap
2016-06-28 8:37 ` Arnd Bergmann
2016-06-29 5:54 ` Alexander Stein [this message]
2016-07-04 9:46 ` Linus Walleij
2016-07-04 16:12 ` Randy Dunlap
2016-07-05 6:48 ` 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=7003426.R6hER1qrYx@ws-stein \
--to=alexanders83@web.de \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=rdunlap@infradead.org \
--cc=sfr@canb.auug.org.au \
--cc=torvalds@linux-foundation.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.