From: Krzysztof Kozlowski <krzk@kernel.org>
To: Jean Delvare <jdelvare@suse.de>
Cc: linux-input@vger.kernel.org, Jaechul Lee <jcsing.lee@samsung.com>,
Beomho Seo <beomho.seo@samsung.com>,
Javier Martinez Canillas <javier@osg.samsung.com>,
Andi Shyti <andi.shyti@samsung.com>,
Chanwoo Choi <cw00.choi@samsung.com>,
Rob Herring <robh@kernel.org>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Subject: Re: [RFC PATCH] Input: tm2-touchkey - add hardware dependency
Date: Mon, 24 Apr 2017 20:57:42 +0200 [thread overview]
Message-ID: <20170424185742.vpgublaincdc5keb@kozik-lap> (raw)
In-Reply-To: <20170424204932.7672d2a3@endymion>
On Mon, Apr 24, 2017 at 08:49:32PM +0200, Jean Delvare wrote:
> On Mon, 24 Apr 2017 13:56:06 +0200, Krzysztof Kozlowski wrote:
> > On Mon, Apr 24, 2017 at 1:34 PM, Jean Delvare <jdelvare@suse.de> wrote:
> > > On Mon, 24 Apr 2017 11:58:09 +0200, Krzysztof Kozlowski wrote:
> > >> On Mon, Apr 24, 2017 at 11:48 AM, Jean Delvare <jdelvare@suse.de> wrote:
> > >> > On Mon, 24 Apr 2017 10:00:32 +0200, Krzysztof Kozlowski wrote:
> > > You are a bit late to the party I am afraid. COMPILE_TEST was
> > > introduced for this very usage 4 years ago and I count 760 occurrences
> > > of it. Not as many as I would like but I think this is going in the
> > > right direction.
> >
> > That is not the purpose of COMPILE_TEST. It serves only to allow
> > compile testing of everything, not selecting "soft dependencies".
>
> Think again and you'll realize this is exactly the same.
No, the purpose of COMPILE_TEST is to build everything whenever it is
possible. Regardless if it is reasonable or not. For example without OF
some drivers will not be able to bind but we can build them for build
coverage (and static checkers coverage). That is the goal.
However you want to limit the driver because of specific board existing
in mainline (have you considered out of tree boards?). That is totally
different meaning and use case.
> > It
> > allows you to build kernel which will not even work in certain cases.
>
> This is an extreme theoretical case, which has nothing to do with the
> problem at hand.
That is the effect of COMPILE_TEST for which it was designed... but you
want to use it in different way.
>
> > Also it does not bring any information about wanted or unwanted links
> > - like "imply".
>
> I have no idea what you mean here, sorry.
The depends/select/imply bring an information to the user about
relationship between the Kconfig symbols.
COMPILE_TEST does not bring such relationship.
>
> > > To be honest, I have also considered the possibility of a dedicated
> > > keyword to express these "intended hardware target" soft dependencies.
> > > Maybe it would make things clearer. But I never had the time to look
> > > into it. Feel free to propose something if you are interested.
> >
> > Workaround might be using default = N, unless ARCH_EXYNOS. Something like:
> > default y if ARCH_EXYNOS
>
> Maybe this is a good idea, maybe not, I don't know as I am not familiar
> with this platform nor the ARM world in general. What I am sure of is
> that this has nothing to do with the problem I was originally
> discussing. I want to change the visibility on non-Exynos build, you
> propose to change the default on Exynos builds. That's not helping (not
> me, at least.)
First of all, I am not changing the defaults. Second, you asked for a
hint of a better solution and now you are complaining that you do not
like it... okay, as you wish.
The other way is to introduce a new soft dependency called whatever you
like to (e.g. "usable on").
But depends and COMPILE_TEST are not for that purpose.
Best regards,
Krzysztof
next prev parent reply other threads:[~2017-04-24 18:57 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170424074240epcas3p2f90e0507afab25e9bfa48fe564936198@epcas3p2.samsung.com>
2017-04-24 7:42 ` [RFC PATCH] Input: tm2-touchkey - add hardware dependency Jean Delvare
2017-04-24 8:00 ` Krzysztof Kozlowski
2017-04-24 9:48 ` Jean Delvare
2017-04-24 9:58 ` Krzysztof Kozlowski
2017-04-24 11:34 ` Jean Delvare
2017-04-24 11:56 ` Krzysztof Kozlowski
2017-04-24 17:09 ` Dmitry Torokhov
2017-04-24 18:31 ` Krzysztof Kozlowski
2017-04-25 8:58 ` Jean Delvare
2017-04-24 18:49 ` Jean Delvare
2017-04-24 18:57 ` Krzysztof Kozlowski [this message]
2017-04-25 9:37 ` Jean Delvare
2017-04-25 2:28 ` Andi Shyti
2017-04-25 9:55 ` Jean Delvare
2017-04-25 11:00 ` Andi Shyti
2017-04-25 17:28 ` Dmitry Torokhov
2017-05-03 9:42 ` Jean Delvare
2017-05-03 9:53 ` Krzysztof Kozlowski
2017-05-03 8:31 ` Jean Delvare
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=20170424185742.vpgublaincdc5keb@kozik-lap \
--to=krzk@kernel.org \
--cc=andi.shyti@samsung.com \
--cc=beomho.seo@samsung.com \
--cc=cw00.choi@samsung.com \
--cc=dmitry.torokhov@gmail.com \
--cc=javier@osg.samsung.com \
--cc=jcsing.lee@samsung.com \
--cc=jdelvare@suse.de \
--cc=linux-input@vger.kernel.org \
--cc=robh@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).