All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rasmus Villemoes <ravi@prevas.dk>
To: "Arnd Bergmann" <arnd@arndb.de>
Cc: "Fabio Estevam" <festevam@gmail.com>,
	 "Guenter Roeck" <linux@roeck-us.net>,
	 "Linus Walleij" <linus.walleij@linaro.org>,
	 "Esben Haabendal" <esben@geanix.com>,
	 "Russell King" <linux@armlinux.org.uk>,
	"Shawn Guo" <shawnguo@kernel.org>,
	 "Sascha Hauer" <s.hauer@pengutronix.de>,
	 "Pengutronix Kernel Team" <kernel@pengutronix.de>,
	 "Dong Aisheng" <aisheng.dong@nxp.com>,
	 "Jacky Bai" <ping.bai@nxp.com>,
	 linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev,
	 linux-kernel@vger.kernel.org,
	 "open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
	 "Fabio Estevam" <festevam@denx.de>
Subject: Re: [PATCH v2 1/3] ARM: imx: Allow user to disable pinctrl
Date: Wed, 27 Nov 2024 11:13:40 +0100	[thread overview]
Message-ID: <87ldx5htm3.fsf@prevas.dk> (raw)
In-Reply-To: <5881df5a-9495-49b9-9956-0538055bba60@app.fastmail.com> (Arnd Bergmann's message of "Wed, 27 Nov 2024 10:18:22 +0100")

On Wed, Nov 27 2024, "Arnd Bergmann" <arnd@arndb.de> wrote:

> On Wed, Nov 27, 2024, at 10:13, Rasmus Villemoes wrote:
>> On Tue, Nov 26 2024, Fabio Estevam <festevam@gmail.com> wrote:
>>>> Fabio submitted a patch enabling PINCTRL for imx_v4_v5_defconfig and
>>>> imx_v6_v7_defconfig explicitly [1]. I don't know if that fixes the
>>>> problem for good - I see CONFIG_ARCH_MXC in other configurations as
>>>> well.
>>>
>>> Good point. I can send a v2 adding CONFIG_PINCTRL=y to the other defconfigs.
>>>
>>
>> Instead of doing that, isn't this exactly what the 'imply' keyword is
>> for?
>>
>> - weak reverse dependencies: "imply" <symbol> ["if" <expr>]
>>
>>   This is similar to "select" as it enforces a lower limit on another
>>   symbol except that the "implied" symbol's value may still be set to n
>>   from a direct dependency or with a visible prompt.
>>
>>
>> So how about adding 'imply PINCTRL' in lieu of the previous 'select
>> PINCTRL'? And that would also better match the intention of the patch in
>> question (namely that the user needs to take explicit action to disable
>> PINCTRL).
>
> Please never use imply. Even if you think it's the right
> thing in a particular case, it will come back to bite you
> later.

Could you elaborate?

> See also https://en.wikipedia.org/wiki/COMEFROM ;-)

Yes yes, we've probably all seen that at some point and chuckled, but I
fail to see why imply would be worse than select.

> I would prefer we completely kill off that keyword from the Kconfig
> language and replace it with the reverse 'default'. In this
> particular case, having 'default ARCH_IMX' in 'PINCTRL'
> would of course not be a great idea,

Just to be clear, it would be 'default y if ARCH_MXC', not 'default
ARCH_IMX', right? Yes, given that the PINCTRL entry doesn't currently
have a list of "default y if ...", it would seem inappropriate.

> but for the exact same reason, the 'imply' is wrong here.

I don't follow, sorry.

Rasmus

  reply	other threads:[~2024-11-27 10:13 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-06 10:23 [PATCH v2 0/3] ARM: imx: only enable pinctrl as needed Esben Haabendal
2024-05-06 10:23 ` Esben Haabendal
2024-05-06 10:23 ` [PATCH v2 1/3] ARM: imx: Allow user to disable pinctrl Esben Haabendal
2024-05-06 10:23   ` Esben Haabendal
2024-06-03  2:50   ` Shawn Guo
2024-06-03  2:50     ` Shawn Guo
2024-09-13  7:21     ` Esben Haabendal
2024-09-24  7:45   ` Linus Walleij
2024-09-26  7:28     ` Esben Haabendal
2024-09-26  8:40     ` Shawn Guo
2024-11-26 16:17   ` Guenter Roeck
2024-11-26 21:24     ` Linus Walleij
2024-11-26 23:53       ` Guenter Roeck
2024-11-27  0:12         ` Fabio Estevam
2024-11-27  6:59           ` Arnd Bergmann
2024-11-27  9:13           ` Rasmus Villemoes
2024-11-27  9:18             ` Arnd Bergmann
2024-11-27 10:13               ` Rasmus Villemoes [this message]
2024-11-27 11:29                 ` Arnd Bergmann
2024-11-27 14:36                   ` Fabio Estevam
2024-11-28  7:32                     ` Esben Haabendal
2024-05-06 10:23 ` [PATCH v2 2/3] pinctrl: freescale: Use CONFIG_SOC_IMXRT to guard i.MX RT1xxx drivers Esben Haabendal
2024-05-06 10:23   ` Esben Haabendal
2024-05-06 11:29   ` Arnd Bergmann
2024-05-06 11:29     ` Arnd Bergmann
2024-05-07  7:37     ` Esben Haabendal
2024-05-07  7:37       ` Esben Haabendal
2024-05-07  7:43       ` Arnd Bergmann
2024-05-07  7:43         ` Arnd Bergmann
2024-05-06 10:23 ` [PATCH v2 3/3] pinctrl: freescale: enable use with COMPILE_TEST Esben Haabendal
2024-05-06 10:23   ` Esben Haabendal
2024-05-27 11:05 ` [PATCH v2 0/3] ARM: imx: only enable pinctrl as needed Linus Walleij
2024-05-27 11:05   ` Linus Walleij
2024-10-01 11:55   ` 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=87ldx5htm3.fsf@prevas.dk \
    --to=ravi@prevas.dk \
    --cc=aisheng.dong@nxp.com \
    --cc=arnd@arndb.de \
    --cc=esben@geanix.com \
    --cc=festevam@denx.de \
    --cc=festevam@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=linux@roeck-us.net \
    --cc=ping.bai@nxp.com \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@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 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.