[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ffd00f91-6569-714d-29dc-65c14b64d914@linux.intel.com>
Date: Fri, 11 Jul 2025 18:34:21 +0300 (EEST)
From: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
To: Arnd Bergmann <arnd@...db.de>
cc: Arnd Bergmann <arnd@...nel.org>,
"Derek J. Clark" <derekjohn.clark@...il.com>,
Mark Pearson <mpearson-lenovo@...ebb.ca>, Hans de Goede <hansg@...nel.org>,
Armin Wolf <W_Armin@....de>, ALOK TIWARI <alok.a.tiwari@...cle.com>,
Mario Limonciello <mario.limonciello@....com>,
Jelle van der Waa <jvanderwaa@...hat.com>,
platform-driver-x86@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] platform/x86: lenovo: gamezone needs "other mode"
On Fri, 11 Jul 2025, Arnd Bergmann wrote:
> On Fri, Jul 11, 2025, at 16:55, Ilpo Järvinen wrote:
> > On Wed, 9 Jul 2025, Arnd Bergmann wrote:
> >> index b76157b35296..e9e1c3268373 100644
> >> --- a/drivers/platform/x86/lenovo/Kconfig
> >> +++ b/drivers/platform/x86/lenovo/Kconfig
> >> @@ -250,8 +250,7 @@ config LENOVO_WMI_GAMEZONE
> >> depends on ACPI_WMI
> >> depends on DMI
> >> select ACPI_PLATFORM_PROFILE
> >> - select LENOVO_WMI_EVENTS
> >> - select LENOVO_WMI_HELPERS
> >> + select LENOVO_WMI_TUNING
> >
> > Why did you remove the other two?
> >
> > Do select propagate properly these days across another select?
>
> Yes, as far as I know it has always done this, with the one
> exception that it does not propagate when trying to select
> another symbol that has missing dependencies
>
> > I was under impression they don't which is one of the reasons
> > use of select is discouraged.
>
> I have seen that mentioned before in commit logs, but I
> think this was a misunderstanding. Using 'select' is still
> discouraged, but for other reasons:
>
> - complexity quickly gets out of hand when selecting something
> that has other dependencies, as the driver selecting them
> must duplicate all those dependencies and keep them in sync
Okay, thanks for these clarifications.
I think I'll take this patch but change it to still keep the other selects
as wmi-gamezone.c is directly using those too anyway.
> - mixing 'depends on' and 'select' for the same dependency
> in different drivers tends to cause dependency loops
>
> - selecting user-visible symbols has side-effects if another
> symbol depends on that, e.g. the "select I2C" in some subsystems
> causes the I2C submenu to appear.
>
> Arnd
>
--
i.
Powered by blists - more mailing lists