dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] leds: expresswire: Fix dependencies
@ 2024-02-12 20:03 Duje Mihanović
  2024-02-12 20:03 ` [PATCH 1/2] Revert "leds: Only descend into leds directory when CONFIG_NEW_LEDS is set" Duje Mihanović
  2024-02-12 20:03 ` [PATCH 2/2] leds: expresswire: don't depend on NEW_LEDS Duje Mihanović
  0 siblings, 2 replies; 6+ messages in thread
From: Duje Mihanović @ 2024-02-12 20:03 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Daniel Thompson, Linus Walleij, Arnd Bergmann
  Cc: Flavio Suligoi, Hans de Goede, Jianhua Lu,
	Matthew Wilcox (Oracle),
	Helge Deller, Jingoo Han, Karel Balej, dri-devel, linux-fbdev,
	linux-kernel, linux-leds, Duje Mihanović

LEDS_EXPRESSWIRE does not depend on NEW_LEDS in practice but still does
in Kconfig. Fix up its Kconfig entry to reflect this and fix a Kconfig
warning.

Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
---
Duje Mihanović (2):
      Revert "leds: Only descend into leds directory when CONFIG_NEW_LEDS is set"
      leds: expresswire: don't depend on NEW_LEDS

 drivers/Makefile     |  2 +-
 drivers/leds/Kconfig | 10 ++++++----
 2 files changed, 7 insertions(+), 5 deletions(-)
---
base-commit: ae00c445390b349e070a64dc62f08aa878db7248
change-id: 20240212-expresswire-deps-e895e8da8ea3

Best regards,
-- 
Duje Mihanović <duje.mihanovic@skole.hr>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] Revert "leds: Only descend into leds directory when CONFIG_NEW_LEDS is set"
  2024-02-12 20:03 [PATCH 0/2] leds: expresswire: Fix dependencies Duje Mihanović
@ 2024-02-12 20:03 ` Duje Mihanović
  2024-02-15 11:49   ` Daniel Thompson
  2024-02-12 20:03 ` [PATCH 2/2] leds: expresswire: don't depend on NEW_LEDS Duje Mihanović
  1 sibling, 1 reply; 6+ messages in thread
From: Duje Mihanović @ 2024-02-12 20:03 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Daniel Thompson, Linus Walleij, Arnd Bergmann
  Cc: Flavio Suligoi, Hans de Goede, Jianhua Lu,
	Matthew Wilcox (Oracle),
	Helge Deller, Jingoo Han, Karel Balej, dri-devel, linux-fbdev,
	linux-kernel, linux-leds, Duje Mihanović

This reverts commit b1ae40a5db6191c42e2e45d726407096f030ee08.

The ExpressWire library introduced in 25ae5f5f4168 ("leds: Introduce
ExpressWire library") does not depend on NEW_LEDS, but without this
revert it would never get compiled if NEW_LEDS is not enabled. Revert
this commit to allow the library to be compiled.

Link: https://lore.kernel.org/2cacd8dc-6150-4aa2-af9e-830a202fb0a8@app.fastmail.com
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
---
 drivers/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/Makefile b/drivers/Makefile
index 37fd6ce3bd7f..3bf5cab4b451 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -135,7 +135,7 @@ obj-$(CONFIG_CPU_IDLE)		+= cpuidle/
 obj-y				+= mmc/
 obj-y				+= ufs/
 obj-$(CONFIG_MEMSTICK)		+= memstick/
-obj-$(CONFIG_NEW_LEDS)		+= leds/
+obj-y				+= leds/
 obj-$(CONFIG_INFINIBAND)	+= infiniband/
 obj-y				+= firmware/
 obj-$(CONFIG_CRYPTO)		+= crypto/

-- 
2.43.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] leds: expresswire: don't depend on NEW_LEDS
  2024-02-12 20:03 [PATCH 0/2] leds: expresswire: Fix dependencies Duje Mihanović
  2024-02-12 20:03 ` [PATCH 1/2] Revert "leds: Only descend into leds directory when CONFIG_NEW_LEDS is set" Duje Mihanović
@ 2024-02-12 20:03 ` Duje Mihanović
  2024-02-15 11:48   ` Daniel Thompson
  1 sibling, 1 reply; 6+ messages in thread
From: Duje Mihanović @ 2024-02-12 20:03 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Daniel Thompson, Linus Walleij, Arnd Bergmann
  Cc: Flavio Suligoi, Hans de Goede, Jianhua Lu,
	Matthew Wilcox (Oracle),
	Helge Deller, Jingoo Han, Karel Balej, dri-devel, linux-fbdev,
	linux-kernel, linux-leds, Duje Mihanović

The ExpressWire library does not depend on NEW_LEDS and selecting it
from a subsystem other than LEDs may cause Kconfig warnings:

WARNING: unmet direct dependencies detected for LEDS_EXPRESSWIRE
  Depends on [n]: NEW_LEDS [=n] && GPIOLIB [=y]
  Selected by [y]:
  - BACKLIGHT_KTD2801 [=y] && HAS_IOMEM [=y] && BACKLIGHT_CLASS_DEVICE [=y]

Move it out of the "if NEW_LEDS" block to allow selection from other
subsystems (in particular backlight) without raising this warning.

Link: https://lore.kernel.org/20240212111819.936815-1-arnd@kernel.org
Reported-by: Arnd Bergmann <arnd@arndb.de>
Suggested-by: Daniel Thompson <daniel.thompson@linaro.org>
Fixes: 25ae5f5f4168 ("leds: Introduce ExpressWire library")
Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
---
 drivers/leds/Kconfig | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index 52328d295b4e..66998b938ed3 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -6,6 +6,12 @@ config LEDS_GPIO_REGISTER
 	  As this function is used by arch code it must not be compiled as a
 	  module.
 
+# This library does not depend on NEW_LEDS and must be independent so it can be
+# selected from other subsystems (specifically backlight).
+config LEDS_EXPRESSWIRE
+	bool
+	depends on GPIOLIB
+
 menuconfig NEW_LEDS
 	bool "LED Support"
 	help
@@ -186,10 +192,6 @@ config LEDS_EL15203000
 	  To compile this driver as a module, choose M here: the module
 	  will be called leds-el15203000.
 
-config LEDS_EXPRESSWIRE
-	bool
-	depends on GPIOLIB
-
 config LEDS_TURRIS_OMNIA
 	tristate "LED support for CZ.NIC's Turris Omnia"
 	depends on LEDS_CLASS_MULTICOLOR

-- 
2.43.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] leds: expresswire: don't depend on NEW_LEDS
  2024-02-12 20:03 ` [PATCH 2/2] leds: expresswire: don't depend on NEW_LEDS Duje Mihanović
@ 2024-02-15 11:48   ` Daniel Thompson
  2024-02-15 12:17     ` Duje Mihanović
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Thompson @ 2024-02-15 11:48 UTC (permalink / raw)
  To: Duje Mihanović
  Cc: Pavel Machek, Lee Jones, Linus Walleij, Arnd Bergmann,
	Flavio Suligoi, Hans de Goede, Jianhua Lu,
	Matthew Wilcox (Oracle),
	Helge Deller, Jingoo Han, Karel Balej, dri-devel, linux-fbdev,
	linux-kernel, linux-leds

On Mon, Feb 12, 2024 at 09:03:26PM +0100, Duje Mihanović wrote:
> The ExpressWire library does not depend on NEW_LEDS and selecting it
> from a subsystem other than LEDs may cause Kconfig warnings:
>
> WARNING: unmet direct dependencies detected for LEDS_EXPRESSWIRE
>   Depends on [n]: NEW_LEDS [=n] && GPIOLIB [=y]
>   Selected by [y]:
>   - BACKLIGHT_KTD2801 [=y] && HAS_IOMEM [=y] && BACKLIGHT_CLASS_DEVICE [=y]
>
> Move it out of the "if NEW_LEDS" block to allow selection from other
> subsystems (in particular backlight) without raising this warning.
>
> Link: https://lore.kernel.org/20240212111819.936815-1-arnd@kernel.org
> Reported-by: Arnd Bergmann <arnd@arndb.de>
> Suggested-by: Daniel Thompson <daniel.thompson@linaro.org>
> Fixes: 25ae5f5f4168 ("leds: Introduce ExpressWire library")
> Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>

Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>


Daniel.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] Revert "leds: Only descend into leds directory when CONFIG_NEW_LEDS is set"
  2024-02-12 20:03 ` [PATCH 1/2] Revert "leds: Only descend into leds directory when CONFIG_NEW_LEDS is set" Duje Mihanović
@ 2024-02-15 11:49   ` Daniel Thompson
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Thompson @ 2024-02-15 11:49 UTC (permalink / raw)
  To: Duje Mihanović
  Cc: Pavel Machek, Lee Jones, Linus Walleij, Arnd Bergmann,
	Flavio Suligoi, Hans de Goede, Jianhua Lu,
	Matthew Wilcox (Oracle),
	Helge Deller, Jingoo Han, Karel Balej, dri-devel, linux-fbdev,
	linux-kernel, linux-leds

On Mon, Feb 12, 2024 at 09:03:25PM +0100, Duje Mihanović wrote:
> This reverts commit b1ae40a5db6191c42e2e45d726407096f030ee08.
>
> The ExpressWire library introduced in 25ae5f5f4168 ("leds: Introduce
> ExpressWire library") does not depend on NEW_LEDS, but without this
> revert it would never get compiled if NEW_LEDS is not enabled. Revert
> this commit to allow the library to be compiled.
>
> Link: https://lore.kernel.org/2cacd8dc-6150-4aa2-af9e-830a202fb0a8@app.fastmail.com
> Suggested-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>

Interesting that this could be a revert!

Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>


Daniel.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] leds: expresswire: don't depend on NEW_LEDS
  2024-02-15 11:48   ` Daniel Thompson
@ 2024-02-15 12:17     ` Duje Mihanović
  0 siblings, 0 replies; 6+ messages in thread
From: Duje Mihanović @ 2024-02-15 12:17 UTC (permalink / raw)
  To: Daniel Thompson
  Cc: Pavel Machek, Lee Jones, Linus Walleij, Arnd Bergmann,
	Flavio Suligoi, Hans de Goede, Jianhua Lu,
	Matthew Wilcox (Oracle),
	Helge Deller, Jingoo Han, Karel Balej, dri-devel, linux-fbdev,
	linux-kernel, linux-leds

On Thursday, February 15, 2024 12:48:31 PM CET Daniel Thompson wrote:
> On Mon, Feb 12, 2024 at 09:03:26PM +0100, Duje Mihanović wrote:
...
> > Link: https://lore.kernel.org/20240212111819.936815-1-arnd@kernel.org
> > Reported-by: Arnd Bergmann <arnd@arndb.de>
> > Suggested-by: Daniel Thompson <daniel.thompson@linaro.org>
> > Fixes: 25ae5f5f4168 ("leds: Introduce ExpressWire library")
> > Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
> 
> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>

I must note that checkpatch actually complains about this patch (I may have 
hit send too early):

0002-leds-expresswire-don-t-depend-on-NEW_LEDS.patch
----------------------------------------------------
WARNING: Reported-by: should be immediately followed by Closes: with a URL to 
the report
#21: 
Reported-by: Arnd Bergmann <arnd@arndb.de>
Suggested-by: Daniel Thompson <daniel.thompson@linaro.org>

total: 0 errors, 1 warnings, 22 lines checked

Could that Link: above be transformed into a Closes:?

Regards,
-- 
Duje




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-15 12:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-12 20:03 [PATCH 0/2] leds: expresswire: Fix dependencies Duje Mihanović
2024-02-12 20:03 ` [PATCH 1/2] Revert "leds: Only descend into leds directory when CONFIG_NEW_LEDS is set" Duje Mihanović
2024-02-15 11:49   ` Daniel Thompson
2024-02-12 20:03 ` [PATCH 2/2] leds: expresswire: don't depend on NEW_LEDS Duje Mihanović
2024-02-15 11:48   ` Daniel Thompson
2024-02-15 12:17     ` Duje Mihanović

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).