* [PATCH] i2c: Make I2C_ATR invisible
@ 2023-08-15 15:29 Geert Uytterhoeven
2023-08-15 15:59 ` Tomi Valkeinen
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2023-08-15 15:29 UTC (permalink / raw)
To: Wolfram Sang, Sakari Ailus, Tomi Valkeinen, Andy Shevchenko,
Luca Ceresoli
Cc: linux-i2c, linux-kernel, Geert Uytterhoeven
I2C Address Translator (ATR) support is not a stand-alone driver, but a
library. All of its users select I2C_ATR. Hence there is no need for
the user to enable this symbol manually, except when compile-testing.
Fixes: a076a860acae77bb ("media: i2c: add I2C Address Translator (ATR) support")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Do we care yet about out-of-tree drivers that need this functionality?
---
drivers/i2c/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index c6d1a345ea6d8aee..9388823bb0bb960c 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -72,7 +72,7 @@ config I2C_MUX
source "drivers/i2c/muxes/Kconfig"
config I2C_ATR
- tristate "I2C Address Translator (ATR) support"
+ tristate "I2C Address Translator (ATR) support" if COMPILE_TEST
help
Enable support for I2C Address Translator (ATR) chips.
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] i2c: Make I2C_ATR invisible
2023-08-15 15:29 [PATCH] i2c: Make I2C_ATR invisible Geert Uytterhoeven
@ 2023-08-15 15:59 ` Tomi Valkeinen
2023-08-16 8:17 ` Geert Uytterhoeven
2023-08-17 7:45 ` Luca Ceresoli
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Tomi Valkeinen @ 2023-08-15 15:59 UTC (permalink / raw)
To: Geert Uytterhoeven, Wolfram Sang, Sakari Ailus, Andy Shevchenko,
Luca Ceresoli
Cc: linux-i2c, linux-kernel
On 15/08/2023 18:29, Geert Uytterhoeven wrote:
> I2C Address Translator (ATR) support is not a stand-alone driver, but a
> library. All of its users select I2C_ATR. Hence there is no need for
> the user to enable this symbol manually, except when compile-testing.
>
> Fixes: a076a860acae77bb ("media: i2c: add I2C Address Translator (ATR) support")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> Do we care yet about out-of-tree drivers that need this functionality?
> ---
> drivers/i2c/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
> index c6d1a345ea6d8aee..9388823bb0bb960c 100644
> --- a/drivers/i2c/Kconfig
> +++ b/drivers/i2c/Kconfig
> @@ -72,7 +72,7 @@ config I2C_MUX
> source "drivers/i2c/muxes/Kconfig"
>
> config I2C_ATR
> - tristate "I2C Address Translator (ATR) support"
> + tristate "I2C Address Translator (ATR) support" if COMPILE_TEST
> help
> Enable support for I2C Address Translator (ATR) chips.
>
Isn't this normally done with just "tristate", without the text? Is
there a need to make configs manually selectable when compile-test is
enabled?
Tomi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] i2c: Make I2C_ATR invisible
2023-08-15 15:59 ` Tomi Valkeinen
@ 2023-08-16 8:17 ` Geert Uytterhoeven
2023-08-16 8:27 ` Tomi Valkeinen
0 siblings, 1 reply; 8+ messages in thread
From: Geert Uytterhoeven @ 2023-08-16 8:17 UTC (permalink / raw)
To: Tomi Valkeinen
Cc: Wolfram Sang, Sakari Ailus, Andy Shevchenko, Luca Ceresoli,
linux-i2c, linux-kernel
Hi Tomi,
On Tue, Aug 15, 2023 at 6:00 PM Tomi Valkeinen
<tomi.valkeinen@ideasonboard.com> wrote:
> On 15/08/2023 18:29, Geert Uytterhoeven wrote:
> > I2C Address Translator (ATR) support is not a stand-alone driver, but a
> > library. All of its users select I2C_ATR. Hence there is no need for
> > the user to enable this symbol manually, except when compile-testing.
> >
> > Fixes: a076a860acae77bb ("media: i2c: add I2C Address Translator (ATR) support")
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > ---
> > Do we care yet about out-of-tree drivers that need this functionality?
> > ---
> > drivers/i2c/Kconfig | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
> > index c6d1a345ea6d8aee..9388823bb0bb960c 100644
> > --- a/drivers/i2c/Kconfig
> > +++ b/drivers/i2c/Kconfig
> > @@ -72,7 +72,7 @@ config I2C_MUX
> > source "drivers/i2c/muxes/Kconfig"
> >
> > config I2C_ATR
> > - tristate "I2C Address Translator (ATR) support"
> > + tristate "I2C Address Translator (ATR) support" if COMPILE_TEST
> > help
> > Enable support for I2C Address Translator (ATR) chips.
> >
>
> Isn't this normally done with just "tristate", without the text? Is
> there a need to make configs manually selectable when compile-test is
> enabled?
"tristate" without the text would make the symbol invisible, too.
However, then the user has no way to enable it for compile-testing
(unless also enabling one of the symbols that select it, which may
not be possible due to other dependencies).
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] i2c: Make I2C_ATR invisible
2023-08-16 8:17 ` Geert Uytterhoeven
@ 2023-08-16 8:27 ` Tomi Valkeinen
0 siblings, 0 replies; 8+ messages in thread
From: Tomi Valkeinen @ 2023-08-16 8:27 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Wolfram Sang, Sakari Ailus, Andy Shevchenko, Luca Ceresoli,
linux-i2c, linux-kernel
Hi Geert,
On 16/08/2023 11:17, Geert Uytterhoeven wrote:
> Hi Tomi,
>
> On Tue, Aug 15, 2023 at 6:00 PM Tomi Valkeinen
> <tomi.valkeinen@ideasonboard.com> wrote:
>> On 15/08/2023 18:29, Geert Uytterhoeven wrote:
>>> I2C Address Translator (ATR) support is not a stand-alone driver, but a
>>> library. All of its users select I2C_ATR. Hence there is no need for
>>> the user to enable this symbol manually, except when compile-testing.
>>>
>>> Fixes: a076a860acae77bb ("media: i2c: add I2C Address Translator (ATR) support")
>>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>>> ---
>>> Do we care yet about out-of-tree drivers that need this functionality?
>>> ---
>>> drivers/i2c/Kconfig | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
>>> index c6d1a345ea6d8aee..9388823bb0bb960c 100644
>>> --- a/drivers/i2c/Kconfig
>>> +++ b/drivers/i2c/Kconfig
>>> @@ -72,7 +72,7 @@ config I2C_MUX
>>> source "drivers/i2c/muxes/Kconfig"
>>>
>>> config I2C_ATR
>>> - tristate "I2C Address Translator (ATR) support"
>>> + tristate "I2C Address Translator (ATR) support" if COMPILE_TEST
>>> help
>>> Enable support for I2C Address Translator (ATR) chips.
>>>
>>
>> Isn't this normally done with just "tristate", without the text? Is
>> there a need to make configs manually selectable when compile-test is
>> enabled?
>
> "tristate" without the text would make the symbol invisible, too.
> However, then the user has no way to enable it for compile-testing
> (unless also enabling one of the symbols that select it, which may
> not be possible due to other dependencies).
Yes. My point/question is, i2c-atr isn't different than any other
selectable kconfig (afaics), like, say, DRM_KMS_HELPER. So is the
"official" way (if there is such a thing) to add selectable kconfigs
with just "tristate", or tristate with "if COMPILE_TEST". I thought it
was the former, but I can see value with the latter too.
Tomi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] i2c: Make I2C_ATR invisible
2023-08-15 15:29 [PATCH] i2c: Make I2C_ATR invisible Geert Uytterhoeven
2023-08-15 15:59 ` Tomi Valkeinen
@ 2023-08-17 7:45 ` Luca Ceresoli
2023-08-17 10:29 ` Tomi Valkeinen
2023-08-25 21:16 ` Wolfram Sang
2023-09-13 8:54 ` Wolfram Sang
3 siblings, 1 reply; 8+ messages in thread
From: Luca Ceresoli @ 2023-08-17 7:45 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Wolfram Sang, Sakari Ailus, Tomi Valkeinen, Andy Shevchenko,
linux-i2c, linux-kernel
Hi Geert,
On Tue, 15 Aug 2023 17:29:11 +0200
Geert Uytterhoeven <geert+renesas@glider.be> wrote:
> I2C Address Translator (ATR) support is not a stand-alone driver, but a
> library. All of its users select I2C_ATR. Hence there is no need for
> the user to enable this symbol manually, except when compile-testing.
>
> Fixes: a076a860acae77bb ("media: i2c: add I2C Address Translator (ATR) support")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> Do we care yet about out-of-tree drivers that need this functionality?
> ---
> drivers/i2c/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
> index c6d1a345ea6d8aee..9388823bb0bb960c 100644
> --- a/drivers/i2c/Kconfig
> +++ b/drivers/i2c/Kconfig
> @@ -72,7 +72,7 @@ config I2C_MUX
> source "drivers/i2c/muxes/Kconfig"
>
> config I2C_ATR
> - tristate "I2C Address Translator (ATR) support"
> + tristate "I2C Address Translator (ATR) support" if COMPILE_TEST
Either as-is, or with an anonymous tristate:
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] i2c: Make I2C_ATR invisible
2023-08-17 7:45 ` Luca Ceresoli
@ 2023-08-17 10:29 ` Tomi Valkeinen
0 siblings, 0 replies; 8+ messages in thread
From: Tomi Valkeinen @ 2023-08-17 10:29 UTC (permalink / raw)
To: Luca Ceresoli, Geert Uytterhoeven
Cc: Wolfram Sang, Sakari Ailus, Andy Shevchenko, linux-i2c,
linux-kernel
On 17/08/2023 10:45, Luca Ceresoli wrote:
> Hi Geert,
>
> On Tue, 15 Aug 2023 17:29:11 +0200
> Geert Uytterhoeven <geert+renesas@glider.be> wrote:
>
>> I2C Address Translator (ATR) support is not a stand-alone driver, but a
>> library. All of its users select I2C_ATR. Hence there is no need for
>> the user to enable this symbol manually, except when compile-testing.
>>
>> Fixes: a076a860acae77bb ("media: i2c: add I2C Address Translator (ATR) support")
>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>> ---
>> Do we care yet about out-of-tree drivers that need this functionality?
>> ---
>> drivers/i2c/Kconfig | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
>> index c6d1a345ea6d8aee..9388823bb0bb960c 100644
>> --- a/drivers/i2c/Kconfig
>> +++ b/drivers/i2c/Kconfig
>> @@ -72,7 +72,7 @@ config I2C_MUX
>> source "drivers/i2c/muxes/Kconfig"
>>
>> config I2C_ATR
>> - tristate "I2C Address Translator (ATR) support"
>> + tristate "I2C Address Translator (ATR) support" if COMPILE_TEST
>
> Either as-is, or with an anonymous tristate:
>
> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Yes, I'm also fine either way:
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Tomi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] i2c: Make I2C_ATR invisible
2023-08-15 15:29 [PATCH] i2c: Make I2C_ATR invisible Geert Uytterhoeven
2023-08-15 15:59 ` Tomi Valkeinen
2023-08-17 7:45 ` Luca Ceresoli
@ 2023-08-25 21:16 ` Wolfram Sang
2023-09-13 8:54 ` Wolfram Sang
3 siblings, 0 replies; 8+ messages in thread
From: Wolfram Sang @ 2023-08-25 21:16 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Sakari Ailus, Tomi Valkeinen, Andy Shevchenko, Luca Ceresoli,
linux-i2c, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 620 bytes --]
On Tue, Aug 15, 2023 at 05:29:11PM +0200, Geert Uytterhoeven wrote:
> I2C Address Translator (ATR) support is not a stand-alone driver, but a
> library. All of its users select I2C_ATR. Hence there is no need for
> the user to enable this symbol manually, except when compile-testing.
>
> Fixes: a076a860acae77bb ("media: i2c: add I2C Address Translator (ATR) support")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Wolfram Sang <wsa@kernel.org>
I like it but I can only apply it once the ATR hits upstream. Or it goes
via the same tree than I2C_ATR. I don't mind which way.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] i2c: Make I2C_ATR invisible
2023-08-15 15:29 [PATCH] i2c: Make I2C_ATR invisible Geert Uytterhoeven
` (2 preceding siblings ...)
2023-08-25 21:16 ` Wolfram Sang
@ 2023-09-13 8:54 ` Wolfram Sang
3 siblings, 0 replies; 8+ messages in thread
From: Wolfram Sang @ 2023-09-13 8:54 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Sakari Ailus, Tomi Valkeinen, Andy Shevchenko, Luca Ceresoli,
linux-i2c, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 686 bytes --]
On Tue, Aug 15, 2023 at 05:29:11PM +0200, Geert Uytterhoeven wrote:
> I2C Address Translator (ATR) support is not a stand-alone driver, but a
> library. All of its users select I2C_ATR. Hence there is no need for
> the user to enable this symbol manually, except when compile-testing.
>
> Fixes: a076a860acae77bb ("media: i2c: add I2C Address Translator (ATR) support")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Fixed checkpatch warning:
WARNING: Please use correct Fixes: style 'Fixes: <12 chars of sha1> ("<title line>")' - ie: 'Fixes: a076a860acae ("media: i2c: add I2C Address Translator (ATR) support")'
and applied to for-current, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-09-13 8:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-15 15:29 [PATCH] i2c: Make I2C_ATR invisible Geert Uytterhoeven
2023-08-15 15:59 ` Tomi Valkeinen
2023-08-16 8:17 ` Geert Uytterhoeven
2023-08-16 8:27 ` Tomi Valkeinen
2023-08-17 7:45 ` Luca Ceresoli
2023-08-17 10:29 ` Tomi Valkeinen
2023-08-25 21:16 ` Wolfram Sang
2023-09-13 8:54 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox