All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Daniel Vetter" <daniel@ffwll.ch>, "Noralf Trønnes" <noralf@tronnes.org>
Cc: Meghana Madhyastha <meghana.madhyastha@gmail.com>,
	daniel@ffwll.ch, outreachy-kernel@googlegroups.com,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v3 1/2] drm/tinydrm: Move tinydrm_of_find_backlight into drm_of.c
Date: Mon, 02 Oct 2017 11:13:06 +0300	[thread overview]
Message-ID: <87y3ou55nx.fsf@intel.com> (raw)
In-Reply-To: <20171002074718.jinjkmc76igo2lkx@phenom.ffwll.local>

On Mon, 02 Oct 2017, Daniel Vetter <daniel@ffwll.ch> wrote:
> Also adding Jani, who looked at the backlight Kconfig mess in the past.

I've even sent patches to fix some of the dependency mess, but the
problem is social not technical. The problem is that people think
"select" is more convenient than "depends" because they can just enable
a config that way, while "depends" would require finding and enabling
all the dependencies before the menu option even shows up.

I don't deny, that's annoying. But it's also abuse of select, see
Documentation/kbuild/kconfig-language.txt:

  Note:
	select should be used with care. select will force
	a symbol to a value without visiting the dependencies.
	By abusing select you are able to select a symbol FOO even
	if FOO depends on BAR that is not set.
	In general use select only for non-visible symbols
	(no prompts anywhere) and for symbols with no dependencies.
	That will limit the usefulness but on the other hand avoid
	the illegal configurations all over.

The real fix would be making finding and enabling dependencies
recursively more convenient, but I don't see that happening anytime
soon.

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Technology Center


WARNING: multiple messages have this Message-ID (diff)
From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Daniel Vetter" <daniel@ffwll.ch>, "Noralf Trønnes" <noralf@tronnes.org>
Cc: Meghana Madhyastha <meghana.madhyastha@gmail.com>,
	outreachy-kernel@googlegroups.com,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v3 1/2] drm/tinydrm: Move tinydrm_of_find_backlight into drm_of.c
Date: Mon, 02 Oct 2017 11:13:06 +0300	[thread overview]
Message-ID: <87y3ou55nx.fsf@intel.com> (raw)
In-Reply-To: <20171002074718.jinjkmc76igo2lkx@phenom.ffwll.local>

On Mon, 02 Oct 2017, Daniel Vetter <daniel@ffwll.ch> wrote:
> Also adding Jani, who looked at the backlight Kconfig mess in the past.

I've even sent patches to fix some of the dependency mess, but the
problem is social not technical. The problem is that people think
"select" is more convenient than "depends" because they can just enable
a config that way, while "depends" would require finding and enabling
all the dependencies before the menu option even shows up.

I don't deny, that's annoying. But it's also abuse of select, see
Documentation/kbuild/kconfig-language.txt:

  Note:
	select should be used with care. select will force
	a symbol to a value without visiting the dependencies.
	By abusing select you are able to select a symbol FOO even
	if FOO depends on BAR that is not set.
	In general use select only for non-visible symbols
	(no prompts anywhere) and for symbols with no dependencies.
	That will limit the usefulness but on the other hand avoid
	the illegal configurations all over.

The real fix would be making finding and enabling dependencies
recursively more convenient, but I don't see that happening anytime
soon.

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2017-10-02  8:13 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-28  9:13 [PATCH v3 0/2] drm/tinydrm: drm_of_find_backlight helper Meghana Madhyastha
2017-09-28  9:13 ` Meghana Madhyastha
2017-09-28  9:14 ` [PATCH v3 1/2] drm/tinydrm: Move tinydrm_of_find_backlight into drm_of.c Meghana Madhyastha
2017-09-28  9:14   ` Meghana Madhyastha
2017-09-28 14:08   ` Daniel Vetter
2017-09-28 14:08     ` Daniel Vetter
2017-09-28 16:02     ` Noralf Trønnes
2017-09-28 16:02       ` Noralf Trønnes
2017-09-29  3:22       ` Meghana Madhyastha
2017-09-29  3:22         ` Meghana Madhyastha
2017-09-29 12:10         ` Noralf Trønnes
2017-09-29 12:10           ` Noralf Trønnes
2017-09-29 12:20           ` Meghana Madhyastha
2017-09-29 12:20             ` Meghana Madhyastha
2017-09-29 12:33             ` Noralf Trønnes
2017-09-29 12:33               ` Noralf Trønnes
2017-09-29 14:13               ` Meghana Madhyastha
2017-09-29 14:13                 ` Meghana Madhyastha
2017-09-29 15:41                 ` Noralf Trønnes
2017-09-29 15:41                   ` Noralf Trønnes
2017-09-30  9:16                   ` Meghana Madhyastha
2017-09-30  9:16                     ` Meghana Madhyastha
2017-10-02  7:47                   ` Daniel Vetter
2017-10-02  7:47                     ` Daniel Vetter
2017-10-02  8:13                     ` Jani Nikula [this message]
2017-10-02  8:13                       ` Jani Nikula
2017-10-03 14:58                       ` Noralf Trønnes
2017-10-03 14:58                         ` Noralf Trønnes
2017-10-03 16:02                         ` Noralf Trønnes
2017-10-03 16:02                           ` Noralf Trønnes
2017-10-03 17:38                           ` Noralf Trønnes
2017-10-03 17:38                             ` Noralf Trønnes
2017-10-05  3:53                             ` Meghana Madhyastha
2017-10-05  3:53                               ` Meghana Madhyastha
2017-10-06 18:04                               ` Noralf Trønnes
2017-10-06 18:04                                 ` Noralf Trønnes
2017-09-29  7:13       ` Daniel Vetter
2017-09-29  7:13         ` Daniel Vetter
2017-09-30  0:49   ` kbuild test robot
2017-09-30  0:49     ` kbuild test robot
2017-09-28  9:15 ` [PATCH v3 2/2] drm/tinydrm: Add devres versions of drm_of_find_backlight Meghana Madhyastha
2017-09-28  9:15   ` Meghana Madhyastha
2017-09-28 16:19   ` Noralf Trønnes
2017-09-28 16:19     ` Noralf Trønnes
2017-09-29  3:17     ` Meghana Madhyastha
2017-09-29  3:17       ` Meghana Madhyastha
2017-09-29 12:20       ` Noralf Trønnes
2017-09-29 12:20         ` Noralf Trønnes
2017-09-29 12:34         ` Meghana Madhyastha
2017-09-29 12:34           ` Meghana Madhyastha

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=87y3ou55nx.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=meghana.madhyastha@gmail.com \
    --cc=noralf@tronnes.org \
    --cc=outreachy-kernel@googlegroups.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 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.