linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/2] dt-bindings: leds: common: add disk write/read and usb-host/usb-gadget
@ 2022-10-28  6:41 Corentin Labbe
  2022-10-28  6:41 ` [PATCH v4 2/2] leds: remove ide-disk trigger Corentin Labbe
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Corentin Labbe @ 2022-10-28  6:41 UTC (permalink / raw)
  To: pavel, robh+dt, krzysztof.kozlowski+dt, linus.walleij
  Cc: devicetree, linux-kernel, linux-leds, Corentin Labbe, Rob Herring

The triggers enum misses 3 cases used by gemini DT.
usb-host was added via commit 0cfbd328d60f ("usb: Add LED triggers for USB activity")
so we add also as valid trigger usb-gadget which was added along in this
commit.

disk-read/disk-write were added by commit d1ed7c558612 ("leds: Extends disk trigger for reads and writes")
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
V1 can be seen at https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20210508193654.2596119-1-clabbe@baylibre.com/
Changes since v1:
- rebased on recent tree

Changes since v2:
- rebased on recent tree

 Documentation/devicetree/bindings/leds/common.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
index f5c57a580078..8ebe602419b5 100644
--- a/Documentation/devicetree/bindings/leds/common.yaml
+++ b/Documentation/devicetree/bindings/leds/common.yaml
@@ -90,6 +90,8 @@ properties:
           - heartbeat
             # LED indicates disk activity
           - disk-activity
+          - disk-read
+          - disk-write
             # LED indicates IDE disk activity (deprecated), in new implementations
             # use "disk-activity"
           - ide-disk
@@ -98,6 +100,8 @@ properties:
             # LED alters the brightness for the specified duration with one software
             # timer (requires "led-pattern" property)
           - pattern
+          - usb-gadget
+          - usb-host
         # LED is triggered by SD/MMC activity
       - pattern: "^mmc[0-9]+$"
       - pattern: "^cpu[0-9]*$"
-- 
2.37.4


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

* [PATCH v4 2/2] leds: remove ide-disk trigger
  2022-10-28  6:41 [PATCH v3 1/2] dt-bindings: leds: common: add disk write/read and usb-host/usb-gadget Corentin Labbe
@ 2022-10-28  6:41 ` Corentin Labbe
  2022-10-28  9:31   ` Linus Walleij
  2022-11-14 15:40 ` [PATCH v3 1/2] dt-bindings: leds: common: add disk write/read and usb-host/usb-gadget Corentin LABBE
  2022-12-12 12:59 ` Corentin LABBE
  2 siblings, 1 reply; 7+ messages in thread
From: Corentin Labbe @ 2022-10-28  6:41 UTC (permalink / raw)
  To: pavel, robh+dt, krzysztof.kozlowski+dt, linus.walleij
  Cc: devicetree, linux-kernel, linux-leds, Corentin Labbe, Rob Herring

No user of ide-disk remains, so remove this deprecated trigger.
Only a few platforms used this and were fixed in 2016.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
Change since v1:
- remove also DEFINE_LED_TRIGGER(ledtrig_ide)
Changes since v2:
- Added the fact that few platforms used this and it was fixed old ago.
- Added Rob's ack
V3 can be seen at https://lore.kernel.org/lkml/20220208104601.3751852-1-clabbe@baylibre.com/T/
Changes since v3:
- rebased on recent tree

 Documentation/devicetree/bindings/leds/common.yaml | 3 ---
 drivers/leds/trigger/ledtrig-disk.c                | 4 ----
 2 files changed, 7 deletions(-)

diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
index 8ebe602419b5..7081c7b64b94 100644
--- a/Documentation/devicetree/bindings/leds/common.yaml
+++ b/Documentation/devicetree/bindings/leds/common.yaml
@@ -92,9 +92,6 @@ properties:
           - disk-activity
           - disk-read
           - disk-write
-            # LED indicates IDE disk activity (deprecated), in new implementations
-            # use "disk-activity"
-          - ide-disk
             # LED flashes at a fixed, configurable rate
           - timer
             # LED alters the brightness for the specified duration with one software
diff --git a/drivers/leds/trigger/ledtrig-disk.c b/drivers/leds/trigger/ledtrig-disk.c
index 0741910785bb..0b7dfbd04273 100644
--- a/drivers/leds/trigger/ledtrig-disk.c
+++ b/drivers/leds/trigger/ledtrig-disk.c
@@ -16,7 +16,6 @@
 DEFINE_LED_TRIGGER(ledtrig_disk);
 DEFINE_LED_TRIGGER(ledtrig_disk_read);
 DEFINE_LED_TRIGGER(ledtrig_disk_write);
-DEFINE_LED_TRIGGER(ledtrig_ide);
 
 void ledtrig_disk_activity(bool write)
 {
@@ -24,8 +23,6 @@ void ledtrig_disk_activity(bool write)
 
 	led_trigger_blink_oneshot(ledtrig_disk,
 				  &blink_delay, &blink_delay, 0);
-	led_trigger_blink_oneshot(ledtrig_ide,
-				  &blink_delay, &blink_delay, 0);
 	if (write)
 		led_trigger_blink_oneshot(ledtrig_disk_write,
 					  &blink_delay, &blink_delay, 0);
@@ -40,7 +37,6 @@ static int __init ledtrig_disk_init(void)
 	led_trigger_register_simple("disk-activity", &ledtrig_disk);
 	led_trigger_register_simple("disk-read", &ledtrig_disk_read);
 	led_trigger_register_simple("disk-write", &ledtrig_disk_write);
-	led_trigger_register_simple("ide-disk", &ledtrig_ide);
 
 	return 0;
 }
-- 
2.37.4


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

* Re: [PATCH v4 2/2] leds: remove ide-disk trigger
  2022-10-28  6:41 ` [PATCH v4 2/2] leds: remove ide-disk trigger Corentin Labbe
@ 2022-10-28  9:31   ` Linus Walleij
  0 siblings, 0 replies; 7+ messages in thread
From: Linus Walleij @ 2022-10-28  9:31 UTC (permalink / raw)
  To: Corentin Labbe
  Cc: pavel, robh+dt, krzysztof.kozlowski+dt, devicetree, linux-kernel,
	linux-leds, Rob Herring

On Fri, Oct 28, 2022 at 8:41 AM Corentin Labbe <clabbe@baylibre.com> wrote:

> No user of ide-disk remains, so remove this deprecated trigger.
> Only a few platforms used this and were fixed in 2016.
>
> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

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

* Re: [PATCH v3 1/2] dt-bindings: leds: common: add disk write/read and usb-host/usb-gadget
  2022-10-28  6:41 [PATCH v3 1/2] dt-bindings: leds: common: add disk write/read and usb-host/usb-gadget Corentin Labbe
  2022-10-28  6:41 ` [PATCH v4 2/2] leds: remove ide-disk trigger Corentin Labbe
@ 2022-11-14 15:40 ` Corentin LABBE
  2022-12-12 12:59 ` Corentin LABBE
  2 siblings, 0 replies; 7+ messages in thread
From: Corentin LABBE @ 2022-11-14 15:40 UTC (permalink / raw)
  To: pavel, robh+dt, krzysztof.kozlowski+dt, linus.walleij
  Cc: devicetree, linux-kernel, linux-leds, Rob Herring

Le Fri, Oct 28, 2022 at 06:41:40AM +0000, Corentin Labbe a écrit :
> The triggers enum misses 3 cases used by gemini DT.
> usb-host was added via commit 0cfbd328d60f ("usb: Add LED triggers for USB activity")
> so we add also as valid trigger usb-gadget which was added along in this
> commit.
> 
> disk-read/disk-write were added by commit d1ed7c558612 ("leds: Extends disk trigger for reads and writes")
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
> Acked-by: Rob Herring <robh@kernel.org>
> 
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
> ---

Hello

Gentle ping

Regards

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

* Re: [PATCH v3 1/2] dt-bindings: leds: common: add disk write/read and usb-host/usb-gadget
  2022-10-28  6:41 [PATCH v3 1/2] dt-bindings: leds: common: add disk write/read and usb-host/usb-gadget Corentin Labbe
  2022-10-28  6:41 ` [PATCH v4 2/2] leds: remove ide-disk trigger Corentin Labbe
  2022-11-14 15:40 ` [PATCH v3 1/2] dt-bindings: leds: common: add disk write/read and usb-host/usb-gadget Corentin LABBE
@ 2022-12-12 12:59 ` Corentin LABBE
  2022-12-12 13:08   ` Linus Walleij
  2022-12-23 12:43   ` Lee Jones
  2 siblings, 2 replies; 7+ messages in thread
From: Corentin LABBE @ 2022-12-12 12:59 UTC (permalink / raw)
  To: pavel, robh+dt, krzysztof.kozlowski+dt, linus.walleij, lee
  Cc: devicetree, linux-kernel, linux-leds, Rob Herring

Le Fri, Oct 28, 2022 at 06:41:40AM +0000, Corentin Labbe a écrit :
> The triggers enum misses 3 cases used by gemini DT.
> usb-host was added via commit 0cfbd328d60f ("usb: Add LED triggers for USB activity")
> so we add also as valid trigger usb-gadget which was added along in this
> commit.
> 
> disk-read/disk-write were added by commit d1ed7c558612 ("leds: Extends disk trigger for reads and writes")
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
> Acked-by: Rob Herring <robh@kernel.org>
> 

Hello Pavel Machek and Lee Jones

The two patch are reviewed, could you take them to your tree ?

thanks
Regards

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

* Re: [PATCH v3 1/2] dt-bindings: leds: common: add disk write/read and usb-host/usb-gadget
  2022-12-12 12:59 ` Corentin LABBE
@ 2022-12-12 13:08   ` Linus Walleij
  2022-12-23 12:43   ` Lee Jones
  1 sibling, 0 replies; 7+ messages in thread
From: Linus Walleij @ 2022-12-12 13:08 UTC (permalink / raw)
  To: Corentin LABBE
  Cc: pavel, robh+dt, krzysztof.kozlowski+dt, lee, devicetree,
	linux-kernel, linux-leds, Rob Herring

On Mon, Dec 12, 2022 at 1:59 PM Corentin LABBE <clabbe@baylibre.com> wrote:
> Le Fri, Oct 28, 2022 at 06:41:40AM +0000, Corentin Labbe a écrit :
> > The triggers enum misses 3 cases used by gemini DT.
> > usb-host was added via commit 0cfbd328d60f ("usb: Add LED triggers for USB activity")
> > so we add also as valid trigger usb-gadget which was added along in this
> > commit.
> >
> > disk-read/disk-write were added by commit d1ed7c558612 ("leds: Extends disk trigger for reads and writes")
> > Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
> > Acked-by: Rob Herring <robh@kernel.org>
> >
>
> Hello Pavel Machek and Lee Jones
>
> The two patch are reviewed, could you take them to your tree ?

If the subsystem maintainers are too busy to respond, maybe you can propose
it for merging through the SoC tree? It's a common last way out.

Yours,
Linus Walleij

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

* Re: [PATCH v3 1/2] dt-bindings: leds: common: add disk write/read and usb-host/usb-gadget
  2022-12-12 12:59 ` Corentin LABBE
  2022-12-12 13:08   ` Linus Walleij
@ 2022-12-23 12:43   ` Lee Jones
  1 sibling, 0 replies; 7+ messages in thread
From: Lee Jones @ 2022-12-23 12:43 UTC (permalink / raw)
  To: Corentin LABBE
  Cc: pavel, robh+dt, krzysztof.kozlowski+dt, linus.walleij, devicetree,
	linux-kernel, linux-leds, Rob Herring

On Mon, 12 Dec 2022, Corentin LABBE wrote:

> Le Fri, Oct 28, 2022 at 06:41:40AM +0000, Corentin Labbe a écrit :
> > The triggers enum misses 3 cases used by gemini DT.
> > usb-host was added via commit 0cfbd328d60f ("usb: Add LED triggers for USB activity")
> > so we add also as valid trigger usb-gadget which was added along in this
> > commit.
> > 
> > disk-read/disk-write were added by commit d1ed7c558612 ("leds: Extends disk trigger for reads and writes")
> > Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
> > Acked-by: Rob Herring <robh@kernel.org>
> > 
> 
> Hello Pavel Machek and Lee Jones
> 
> The two patch are reviewed, could you take them to your tree ?

I do not have access to these patches.  Please [RESEND] them.

-- 
Lee Jones [李琼斯]

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

end of thread, other threads:[~2022-12-23 12:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-28  6:41 [PATCH v3 1/2] dt-bindings: leds: common: add disk write/read and usb-host/usb-gadget Corentin Labbe
2022-10-28  6:41 ` [PATCH v4 2/2] leds: remove ide-disk trigger Corentin Labbe
2022-10-28  9:31   ` Linus Walleij
2022-11-14 15:40 ` [PATCH v3 1/2] dt-bindings: leds: common: add disk write/read and usb-host/usb-gadget Corentin LABBE
2022-12-12 12:59 ` Corentin LABBE
2022-12-12 13:08   ` Linus Walleij
2022-12-23 12:43   ` Lee Jones

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