linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 5/5] leds: pwm: add reference to common leds for default-state
  2020-03-21  8:15 [PATCH v4 0/5] leds: pwm: add support for default-state device Denis Osterland-Heim
@ 2020-03-21  8:15 ` Denis Osterland-Heim
  2020-03-21 15:15   ` Pavel Machek
  2020-03-31 17:36   ` Rob Herring
  2020-03-21  8:15 ` [PATCH v4 3/5] leds: pwm: check result of led_pwm_set() in led_pwm_add() Denis Osterland-Heim
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 15+ messages in thread
From: Denis Osterland-Heim @ 2020-03-21  8:15 UTC (permalink / raw)
  To: dmurphy, pavel, mark.rutland, jacek.anaszewski, robh+dt
  Cc: linux-kernel, Denis Osterland-Heim, linux-leds, devicetree

The default-state is now supported for PWM leds.

Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>
---
 Documentation/devicetree/bindings/leds/leds-pwm.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/leds/leds-pwm.txt b/Documentation/devicetree/bindings/leds/leds-pwm.txt
index 6c6583c35f2f..d0f489680594 100644
--- a/Documentation/devicetree/bindings/leds/leds-pwm.txt
+++ b/Documentation/devicetree/bindings/leds/leds-pwm.txt
@@ -19,6 +19,8 @@ LED sub-node properties:
   see Documentation/devicetree/bindings/leds/common.txt
 - linux,default-trigger :  (optional)
   see Documentation/devicetree/bindings/leds/common.txt
+- default-state : (optional)
+  see Documentation/devicetree/bindings/leds/common.yaml
 
 Example:
 
-- 
2.25.1



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. 
- For general information on data protection and your respective rights please visit https://www.diehl.com/group/en/transparency-and-information-obligations/

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

* [PATCH v4 3/5] leds: pwm: check result of led_pwm_set() in led_pwm_add()
  2020-03-21  8:15 [PATCH v4 0/5] leds: pwm: add support for default-state device Denis Osterland-Heim
  2020-03-21  8:15 ` [PATCH v4 5/5] leds: pwm: add reference to common leds for default-state Denis Osterland-Heim
@ 2020-03-21  8:15 ` Denis Osterland-Heim
  2020-03-21 15:20   ` Pavel Machek
  2020-03-21  8:15 ` [PATCH v4 2/5] leds: pwm: remove useless pwm_period_ns Denis Osterland-Heim
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 15+ messages in thread
From: Denis Osterland-Heim @ 2020-03-21  8:15 UTC (permalink / raw)
  To: dmurphy, pavel, mark.rutland, jacek.anaszewski, robh+dt
  Cc: linux-kernel, Denis Osterland-Heim, linux-leds, devicetree, uwe

led_pwm_set() now returns an error when setting the PWM fails.

Cc: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>
---
 drivers/leds/leds-pwm.c | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/drivers/leds/leds-pwm.c b/drivers/leds/leds-pwm.c
index 6caf8bea8cd5..07eab2d8b7c7 100644
--- a/drivers/leds/leds-pwm.c
+++ b/drivers/leds/leds-pwm.c
@@ -91,15 +91,21 @@ static int led_pwm_add(struct device *dev, struct led_pwm_priv *priv,
 	pwm_init_state(led_data->pwm, &led_data->pwmstate);
 
 	ret = devm_led_classdev_register(dev, &led_data->cdev);
-	if (ret == 0) {
-		priv->num_leds++;
-		led_pwm_set(&led_data->cdev, led_data->cdev.brightness);
-	} else {
+	if (ret) {
 		dev_err(dev, "failed to register PWM led for %s: %d\n",
 			led->name, ret);
+		return ret;
 	}
 
-	return ret;
+	ret = led_pwm_set(&led_data->cdev, led_data->cdev.brightness);
+	if (ret) {
+		dev_err(dev, "failed to set led PWM value for %s: %d",
+			led->name, ret);
+		return ret;
+	}
+
+	priv->num_leds++;
+	return 0;
 }
 
 static int led_pwm_create_fwnode(struct device *dev, struct led_pwm_priv *priv)
-- 
2.25.1



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. 
- For general information on data protection and your respective rights please visit https://www.diehl.com/group/en/transparency-and-information-obligations/

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

* [PATCH v4 0/5] leds: pwm: add support for default-state device
@ 2020-03-21  8:15 Denis Osterland-Heim
  2020-03-21  8:15 ` [PATCH v4 5/5] leds: pwm: add reference to common leds for default-state Denis Osterland-Heim
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Denis Osterland-Heim @ 2020-03-21  8:15 UTC (permalink / raw)
  To: dmurphy, pavel, mark.rutland, jacek.anaszewski, robh+dt
  Cc: linux-kernel, linux-leds, devicetree

v3->v4:
 - remove deprecated unused pwm_id member from led_pwm
 - remove useless pwm_period_ns member from led_pwm
 - check return value of led_pwm_set() in led_pwm_add()
 - if period is 0 after pwm_get_state(), fall back to off state
   this avoids division by zero

 .../devicetree/bindings/leds/leds-pwm.txt          |  2 +
 drivers/leds/leds-pwm.c                            | 76 +++++++++++++++++++---
 include/linux/leds_pwm.h                           | 22 -------
 3 files changed, 68 insertions(+), 32 deletions(-)

Message-Id: 20200316124851.6303-1-Denis.Osterland@diehl.com





Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. 
- For general information on data protection and your respective rights please visit https://www.diehl.com/group/en/transparency-and-information-obligations/

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

* [PATCH v4 2/5] leds: pwm: remove useless pwm_period_ns
  2020-03-21  8:15 [PATCH v4 0/5] leds: pwm: add support for default-state device Denis Osterland-Heim
  2020-03-21  8:15 ` [PATCH v4 5/5] leds: pwm: add reference to common leds for default-state Denis Osterland-Heim
  2020-03-21  8:15 ` [PATCH v4 3/5] leds: pwm: check result of led_pwm_set() in led_pwm_add() Denis Osterland-Heim
@ 2020-03-21  8:15 ` Denis Osterland-Heim
  2020-03-21  8:15 ` [PATCH v4 1/5] leds: pwm: remove header Denis Osterland-Heim
  2020-03-21  8:15 ` [PATCH v4 4/5] leds: pwm: add support for default-state device property Denis Osterland-Heim
  4 siblings, 0 replies; 15+ messages in thread
From: Denis Osterland-Heim @ 2020-03-21  8:15 UTC (permalink / raw)
  To: dmurphy, pavel, mark.rutland, jacek.anaszewski, robh+dt
  Cc: linux-kernel, Denis Osterland-Heim, linux-leds, devicetree

This member seems to was a way to pass PWM period to the LED.
Since there is no header anymore, this is useless.

Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>
---
 drivers/leds/leds-pwm.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/leds/leds-pwm.c b/drivers/leds/leds-pwm.c
index e1848e80aeb4..6caf8bea8cd5 100644
--- a/drivers/leds/leds-pwm.c
+++ b/drivers/leds/leds-pwm.c
@@ -23,7 +23,6 @@ struct led_pwm {
 	const char	*default_trigger;
 	u8		active_low;
 	unsigned int	max_brightness;
-	unsigned int	pwm_period_ns;
 };
 
 struct led_pwm_platform_data {
@@ -91,9 +90,6 @@ static int led_pwm_add(struct device *dev, struct led_pwm_priv *priv,
 
 	pwm_init_state(led_data->pwm, &led_data->pwmstate);
 
-	if (!led_data->pwmstate.period)
-		led_data->pwmstate.period = led->pwm_period_ns;
-
 	ret = devm_led_classdev_register(dev, &led_data->cdev);
 	if (ret == 0) {
 		priv->num_leds++;
-- 
2.25.1



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. 
- For general information on data protection and your respective rights please visit https://www.diehl.com/group/en/transparency-and-information-obligations/

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

* [PATCH v4 1/5] leds: pwm: remove header
  2020-03-21  8:15 [PATCH v4 0/5] leds: pwm: add support for default-state device Denis Osterland-Heim
                   ` (2 preceding siblings ...)
  2020-03-21  8:15 ` [PATCH v4 2/5] leds: pwm: remove useless pwm_period_ns Denis Osterland-Heim
@ 2020-03-21  8:15 ` Denis Osterland-Heim
  2020-03-21  8:15 ` [PATCH v4 4/5] leds: pwm: add support for default-state device property Denis Osterland-Heim
  4 siblings, 0 replies; 15+ messages in thread
From: Denis Osterland-Heim @ 2020-03-21  8:15 UTC (permalink / raw)
  To: dmurphy, pavel, mark.rutland, jacek.anaszewski, robh+dt
  Cc: linux-kernel, Denis Osterland-Heim, linux-leds, devicetree

The header is only used by leds_pwm.c, so move contents to leds_pwm.c
and remove it.
Apply minor changes suggested by checkpatch.
Remove deprecated and unused pwm_id member.

Suggested-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>
---
 drivers/leds/leds-pwm.c  | 14 +++++++++++++-
 include/linux/leds_pwm.h | 22 ----------------------
 2 files changed, 13 insertions(+), 23 deletions(-)
 delete mode 100644 include/linux/leds_pwm.h

diff --git a/drivers/leds/leds-pwm.c b/drivers/leds/leds-pwm.c
index 9111cdede0ee..e1848e80aeb4 100644
--- a/drivers/leds/leds-pwm.c
+++ b/drivers/leds/leds-pwm.c
@@ -16,9 +16,21 @@
 #include <linux/leds.h>
 #include <linux/err.h>
 #include <linux/pwm.h>
-#include <linux/leds_pwm.h>
 #include <linux/slab.h>
 
+struct led_pwm {
+	const char	*name;
+	const char	*default_trigger;
+	u8		active_low;
+	unsigned int	max_brightness;
+	unsigned int	pwm_period_ns;
+};
+
+struct led_pwm_platform_data {
+	int		num_leds;
+	struct led_pwm	*leds;
+};
+
 struct led_pwm_data {
 	struct led_classdev	cdev;
 	struct pwm_device	*pwm;
diff --git a/include/linux/leds_pwm.h b/include/linux/leds_pwm.h
deleted file mode 100644
index 93d101d28943..000000000000
--- a/include/linux/leds_pwm.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * PWM LED driver data - see drivers/leds/leds-pwm.c
- */
-#ifndef __LINUX_LEDS_PWM_H
-#define __LINUX_LEDS_PWM_H
-
-struct led_pwm {
-	const char	*name;
-	const char	*default_trigger;
-	unsigned	pwm_id __deprecated;
-	u8 		active_low;
-	unsigned 	max_brightness;
-	unsigned	pwm_period_ns;
-};
-
-struct led_pwm_platform_data {
-	int			num_leds;
-	struct led_pwm	*leds;
-};
-
-#endif
-- 
2.25.1



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. 
- For general information on data protection and your respective rights please visit https://www.diehl.com/group/en/transparency-and-information-obligations/

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

* [PATCH v4 4/5] leds: pwm: add support for default-state device property
  2020-03-21  8:15 [PATCH v4 0/5] leds: pwm: add support for default-state device Denis Osterland-Heim
                   ` (3 preceding siblings ...)
  2020-03-21  8:15 ` [PATCH v4 1/5] leds: pwm: remove header Denis Osterland-Heim
@ 2020-03-21  8:15 ` Denis Osterland-Heim
  4 siblings, 0 replies; 15+ messages in thread
From: Denis Osterland-Heim @ 2020-03-21  8:15 UTC (permalink / raw)
  To: dmurphy, pavel, mark.rutland, jacek.anaszewski, robh+dt
  Cc: linux-kernel, Denis Osterland-Heim, linux-leds, devicetree

This patch adds support for "default-state" devicetree property, which
allows to defer pwm init to first use of led.

This allows to configure the PWM early in bootloader to let the LED
blink until an application in Linux userspace sets something different.

Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>
---
 drivers/leds/leds-pwm.c | 54 ++++++++++++++++++++++++++++++++++++-----
 1 file changed, 48 insertions(+), 6 deletions(-)

diff --git a/drivers/leds/leds-pwm.c b/drivers/leds/leds-pwm.c
index 07eab2d8b7c7..73d36d5fb427 100644
--- a/drivers/leds/leds-pwm.c
+++ b/drivers/leds/leds-pwm.c
@@ -18,10 +18,15 @@
 #include <linux/pwm.h>
 #include <linux/slab.h>
 
+#define LEDS_PWM_DEFSTATE_OFF	0
+#define LEDS_PWM_DEFSTATE_ON	1
+#define LEDS_PWM_DEFSTATE_KEEP	2
+
 struct led_pwm {
 	const char	*name;
 	const char	*default_trigger;
 	u8		active_low;
+	u8		default_state;
 	unsigned int	max_brightness;
 };
 
@@ -88,7 +93,30 @@ static int led_pwm_add(struct device *dev, struct led_pwm_priv *priv,
 
 	led_data->cdev.brightness_set_blocking = led_pwm_set;
 
-	pwm_init_state(led_data->pwm, &led_data->pwmstate);
+	/* init PWM state */
+	if (led->default_state == LEDS_PWM_DEFSTATE_KEEP) {
+		pwm_get_state(led_data->pwm, &led_data->pwmstate);
+		if (!led_data->pwmstate.period) {
+			led->default_state = LEDS_PWM_DEFSTATE_OFF;
+			dev_warn(dev,
+				"failed to read period for %s, default to off",
+				led->name);
+		}
+	}
+	if (led->default_state != LEDS_PWM_DEFSTATE_KEEP)
+		pwm_init_state(led_data->pwm, &led_data->pwmstate);
+
+	/* set brightness */
+	if (led->default_state == LEDS_PWM_DEFSTATE_ON)
+		led_data->cdev.brightness = led->max_brightness;
+	else if (led->default_state == LEDS_PWM_DEFSTATE_KEEP) {
+		uint64_t brightness;
+
+		brightness = led->max_brightness;
+		brightness *= led_data->pwmstate.duty_cycle;
+		do_div(brightness, led_data->pwmstate.period);
+		led_data->cdev.brightness = brightness;
+	}
 
 	ret = devm_led_classdev_register(dev, &led_data->cdev);
 	if (ret) {
@@ -97,11 +125,13 @@ static int led_pwm_add(struct device *dev, struct led_pwm_priv *priv,
 		return ret;
 	}
 
-	ret = led_pwm_set(&led_data->cdev, led_data->cdev.brightness);
-	if (ret) {
-		dev_err(dev, "failed to set led PWM value for %s: %d",
-			led->name, ret);
-		return ret;
+	if (led->default_state != LEDS_PWM_DEFSTATE_KEEP) {
+		ret = led_pwm_set(&led_data->cdev, led_data->cdev.brightness);
+		if (ret) {
+			dev_err(dev, "failed to set led PWM value for %s: %d",
+				led->name, ret);
+			return ret;
+		}
 	}
 
 	priv->num_leds++;
@@ -117,6 +147,8 @@ static int led_pwm_create_fwnode(struct device *dev, struct led_pwm_priv *priv)
 	memset(&led, 0, sizeof(led));
 
 	device_for_each_child_node(dev, fwnode) {
+		const char *state = NULL;
+
 		ret = fwnode_property_read_string(fwnode, "label", &led.name);
 		if (ret && is_of_node(fwnode))
 			led.name = to_of_node(fwnode)->name;
@@ -134,6 +166,16 @@ static int led_pwm_create_fwnode(struct device *dev, struct led_pwm_priv *priv)
 		fwnode_property_read_u32(fwnode, "max-brightness",
 					 &led.max_brightness);
 
+		if (!fwnode_property_read_string(fwnode, "default-state",
+						 &state)) {
+			if (!strcmp(state, "keep"))
+				led.default_state = LEDS_PWM_DEFSTATE_KEEP;
+			else if (!strcmp(state, "on"))
+				led.default_state = LEDS_PWM_DEFSTATE_ON;
+			else
+				led.default_state = LEDS_PWM_DEFSTATE_OFF;
+		}
+
 		ret = led_pwm_add(dev, priv, &led, fwnode);
 		if (ret) {
 			fwnode_handle_put(fwnode);
-- 
2.25.1



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. 
- For general information on data protection and your respective rights please visit https://www.diehl.com/group/en/transparency-and-information-obligations/

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

* Re: [PATCH v4 5/5] leds: pwm: add reference to common leds for default-state
  2020-03-21  8:15 ` [PATCH v4 5/5] leds: pwm: add reference to common leds for default-state Denis Osterland-Heim
@ 2020-03-21 15:15   ` Pavel Machek
  2020-03-22  7:59     ` Denis Osterland-Heim
  2020-03-31 17:36   ` Rob Herring
  1 sibling, 1 reply; 15+ messages in thread
From: Pavel Machek @ 2020-03-21 15:15 UTC (permalink / raw)
  To: Denis Osterland-Heim
  Cc: dmurphy, mark.rutland, jacek.anaszewski, robh+dt, linux-kernel,
	linux-leds, devicetree

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

On Sat 2020-03-21 08:15:51, Denis Osterland-Heim wrote:
> The default-state is now supported for PWM leds.
> 
> Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>

Acked-by: Pavel Machek <pavel@ucw.cz>

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

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

* Re: [PATCH v4 3/5] leds: pwm: check result of led_pwm_set() in led_pwm_add()
  2020-03-21  8:15 ` [PATCH v4 3/5] leds: pwm: check result of led_pwm_set() in led_pwm_add() Denis Osterland-Heim
@ 2020-03-21 15:20   ` Pavel Machek
  2020-03-21 17:13     ` Denis Osterland-Heim
  2020-03-22 14:56     ` Jacek Anaszewski
  0 siblings, 2 replies; 15+ messages in thread
From: Pavel Machek @ 2020-03-21 15:20 UTC (permalink / raw)
  To: Denis Osterland-Heim
  Cc: dmurphy, mark.rutland, jacek.anaszewski, robh+dt, linux-kernel,
	linux-leds, devicetree, uwe

[-- Attachment #1: Type: text/plain, Size: 1585 bytes --]

Hi!

> led_pwm_set() now returns an error when setting the PWM fails.
> 
> Cc: Uwe Kleine-König <uwe@kleine-koenig.org>
> Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>

I applied 1 and 2, but 3 failed for me. I'll push updated -next, can
you see what is going on there?

Best regards,
								Pavel

> +++ b/drivers/leds/leds-pwm.c
> @@ -91,15 +91,21 @@ static int led_pwm_add(struct device *dev, struct led_pwm_priv *priv,
>  	pwm_init_state(led_data->pwm, &led_data->pwmstate);
>  
>  	ret = devm_led_classdev_register(dev, &led_data->cdev);
> -	if (ret == 0) {
> -		priv->num_leds++;
> -		led_pwm_set(&led_data->cdev, led_data->cdev.brightness);
> -	} else {
> +	if (ret) {
>  		dev_err(dev, "failed to register PWM led for %s: %d\n",
>  			led->name, ret);
> +		return ret;
>  	}
>  
> -	return ret;
> +	ret = led_pwm_set(&led_data->cdev, led_data->cdev.brightness);
> +	if (ret) {
> +		dev_err(dev, "failed to set led PWM value for %s: %d",
> +			led->name, ret);
> +		return ret;
> +	}
> +
> +	priv->num_leds++;
> +	return 0;
>  }
>  
>  static int led_pwm_create_fwnode(struct device *dev, struct
> led_pwm_priv *priv)

> 
> The contents of the above mentioned e-mail is not legally
> binding. This e-mail contains confidential and/or legally protected
> information. Please inform us if you have received this e-mail by

This is lie. Please don't do this.
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

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

* Re: [PATCH v4 3/5] leds: pwm: check result of led_pwm_set() in led_pwm_add()
  2020-03-21 15:20   ` Pavel Machek
@ 2020-03-21 17:13     ` Denis Osterland-Heim
  2020-03-22  7:51       ` Denis Osterland-Heim
  2020-03-22 14:56     ` Jacek Anaszewski
  1 sibling, 1 reply; 15+ messages in thread
From: Denis Osterland-Heim @ 2020-03-21 17:13 UTC (permalink / raw)
  To: pavel
  Cc: linux-kernel, robh+dt, dmurphy, devicetree, jacek.anaszewski,
	linux-leds, mark.rutland, uwe

Hi Pavel,

here it works.

$ git reset --hard origin/for-next
HEAD is now at 032426ff773f leds: lm3532: make bitfield 'enabled' unsigned
$ curl -s https://lore.kernel.org/patchwork/patch/1213548/mbox/ | git am
Applying: leds: pwm: check result of led_pwm_set() in led_pwm_add()

Strange is that the From: tag in 7bbec6c4b51d is not evaluated at your side.
When I do it, I get:

$ git reset --hard 7a6303677598
HEAD is now at 7a6303677598 leds: leds-is31fl32xx: Replace zero-length array with flexible-array member
$ curl -s https://lore.kernel.org/patchwork/patch/1212782/mbox/ | git am
Applying: leds: leds-pwm: Replace zero-length array with flexible-array member
$ git show
commit e247ae982b5ba113cc9668bec578105645137fb2 (HEAD -> for-next)
Author: Gustavo A. R. Silva <gustavo@embeddedor.com>
Date:   Thu Mar 19 16:51:46 2020 -0500

    leds: leds-pwm: Replace zero-length array with flexible-array member

Regards Denis

Am Samstag, den 21.03.2020, 16:20 +0100 schrieb Pavel Machek:
> Hi!
> 
> > led_pwm_set() now returns an error when setting the PWM fails.
> > 
> > Cc: Uwe Kleine-König <uwe@kleine-koenig.org>
> > Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>
> 
> I applied 1 and 2, but 3 failed for me. I'll push updated -next, can
> you see what is going on there?
> 
> Best regards,
> 								Pavel
> 
> > +++ b/drivers/leds/leds-pwm.c
> > @@ -91,15 +91,21 @@ static int led_pwm_add(struct device *dev, struct led_pwm_priv *priv,
> >  	pwm_init_state(led_data->pwm, &led_data->pwmstate);
> >  
> >  	ret = devm_led_classdev_register(dev, &led_data->cdev);
> > -	if (ret == 0) {
> > -		priv->num_leds++;
> > -		led_pwm_set(&led_data->cdev, led_data->cdev.brightness);
> > -	} else {
> > +	if (ret) {
> >  		dev_err(dev, "failed to register PWM led for %s: %d\n",
> >  			led->name, ret);
> > +		return ret;
> >  	}
> >  
> > -	return ret;
> > +	ret = led_pwm_set(&led_data->cdev, led_data->cdev.brightness);
> > +	if (ret) {
> > +		dev_err(dev, "failed to set led PWM value for %s: %d",
> > +			led->name, ret);
> > +		return ret;
> > +	}
> > +
> > +	priv->num_leds++;
> > +	return 0;
> >  }
> >  
> >  static int led_pwm_create_fwnode(struct device *dev, struct
> > led_pwm_priv *priv)
> > 
> > The contents of the above mentioned e-mail is not legally
> > binding. This e-mail contains confidential and/or legally protected
> > information. Please inform us if you have received this e-mail by
> 
> This is lie. Please don't do this.
> 								Pavel
> +----------------------------------------------------------------------+
> > Z1 SecureMail Gateway Processing Info                                |
> 
> +----------------------------------------------------------------------+
> > - The message was signed by                                          |
> >   [No Info available]                                                |
> >   Signature not verifiable                                           |
> >   - Message content not verifiable                                   |
> >   - Certificate not verifiable                                       |
> 
> +----------------------------------------------------------------------+


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. 
- For general information on data protection and your respective rights please visit https://www.diehl.com/group/en/transparency-and-information-obligations/

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

* Re: [PATCH v4 3/5] leds: pwm: check result of led_pwm_set() in led_pwm_add()
  2020-03-21 17:13     ` Denis Osterland-Heim
@ 2020-03-22  7:51       ` Denis Osterland-Heim
  0 siblings, 0 replies; 15+ messages in thread
From: Denis Osterland-Heim @ 2020-03-22  7:51 UTC (permalink / raw)
  To: pavel
  Cc: linux-kernel, robh+dt, dmurphy, devicetree, jacek.anaszewski,
	linux-leds, mark.rutland, uwe

Hi Pavel,

Am Samstag, den 21.03.2020, 18:13 +0100 schrieb Denis Osterland-Heim:
> Hi Pavel,
> 
> here it works.
> 
> $ git reset --hard origin/for-next
> HEAD is now at 032426ff773f leds: lm3532: make bitfield 'enabled' unsigned
> $ curl -s https://lore.kernel.org/patchwork/patch/1213548/mbox/ | git am
> Applying: leds: pwm: check result of led_pwm_set() in led_pwm_add()
> 
I have applied it to 10a6cce3c1a15e40dd7b69e66e4780476e590f68 without problems as well.

Can you use `git am --show-current-patch | patch -p1 --merge` and post the conflicts?

> Strange is that the From: tag in 7bbec6c4b51d is not evaluated at your side.
> When I do it, I get:
> 
> $ git reset --hard 7a6303677598
> HEAD is now at 7a6303677598 leds: leds-is31fl32xx: Replace zero-length array with flexible-array member
> $ curl -s https://lore.kernel.org/patchwork/patch/1212782/mbox/ | git am
> Applying: leds: leds-pwm: Replace zero-length array with flexible-array member
> $ git show
> commit e247ae982b5ba113cc9668bec578105645137fb2 (HEAD -> for-next)
> Author: Gustavo A. R. Silva <gustavo@embeddedor.com>
> Date:   Thu Mar 19 16:51:46 2020 -0500
> 
>     leds: leds-pwm: Replace zero-length array with flexible-array member
Sorry for that, this was one patch off.
3953d1908b2cc5f57a5f9ebd7f6b5736a8e1fe25 is the one with the "From:" line.

> 
> Regards Denis
> 
> Am Samstag, den 21.03.2020, 16:20 +0100 schrieb Pavel Machek:
> > Hi!
> > 
...
> > > 
> > > The contents of the above mentioned e-mail is not legally
> > > binding. This e-mail contains confidential and/or legally protected
> > > information. Please inform us if you have received this e-mail by
> > 
> > This is lie. Please don't do this.
> > 								Pavel
Corporate Exchange server automatically appends it.
I can not suppress it, sorry.

Regards Denis

> > +----------------------------------------------------------------------+
> > > Z1 SecureMail Gateway Processing Info                                |
> > 
> > +----------------------------------------------------------------------+
> > > - The message was signed by                                          |
> > >   [No Info available]                                                |
> > >   Signature not verifiable                                           |
> > >   - Message content not verifiable                                   |
> > >   - Certificate not verifiable                                       |
> > 
> > +----------------------------------------------------------------------+


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. 
- For general information on data protection and your respective rights please visit https://www.diehl.com/group/en/transparency-and-information-obligations/

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

* Re: [PATCH v4 5/5] leds: pwm: add reference to common leds for default-state
  2020-03-21 15:15   ` Pavel Machek
@ 2020-03-22  7:59     ` Denis Osterland-Heim
  0 siblings, 0 replies; 15+ messages in thread
From: Denis Osterland-Heim @ 2020-03-22  7:59 UTC (permalink / raw)
  To: pavel
  Cc: devicetree, dmurphy, mark.rutland, linux-kernel,
	jacek.anaszewski, robh+dt, linux-leds

Hi Pavel,

I forgot to add the Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
given in https://www.spinics.net/lists/linux-leds/msg15149.html
which is only valid for this patch, because I have changed the other two.

Regards Denis

Am Samstag, den 21.03.2020, 16:15 +0100 schrieb Pavel Machek:
> On Sat 2020-03-21 08:15:51, Denis Osterland-Heim wrote:
> > The default-state is now supported for PWM leds.
> > 
> > Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>
> 
> Acked-by: Pavel Machek <pavel@ucw.cz>
> 


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. 
- For general information on data protection and your respective rights please visit https://www.diehl.com/group/en/transparency-and-information-obligations/

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

* Re: [PATCH v4 3/5] leds: pwm: check result of led_pwm_set() in led_pwm_add()
  2020-03-21 15:20   ` Pavel Machek
  2020-03-21 17:13     ` Denis Osterland-Heim
@ 2020-03-22 14:56     ` Jacek Anaszewski
  2020-03-23  6:09       ` Denis Osterland-Heim
  1 sibling, 1 reply; 15+ messages in thread
From: Jacek Anaszewski @ 2020-03-22 14:56 UTC (permalink / raw)
  To: Pavel Machek, Denis Osterland-Heim
  Cc: dmurphy, mark.rutland, robh+dt, linux-kernel, linux-leds,
	devicetree, uwe

On 3/21/20 4:20 PM, Pavel Machek wrote:
> Hi!
> 
>> led_pwm_set() now returns an error when setting the PWM fails.
>>
>> Cc: Uwe Kleine-König <uwe@kleine-koenig.org>
>> Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>
> 
> I applied 1 and 2, but 3 failed for me. I'll push updated -next, can
> you see what is going on there?

Check the contents of the patch after writing it on a disk.
In my case it contains a block of random characters.
It is probably due to Content-Transfer-Encoding: base64.

-- 
Best regards,
Jacek Anaszewski

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

* Re: [PATCH v4 3/5] leds: pwm: check result of led_pwm_set() in led_pwm_add()
  2020-03-22 14:56     ` Jacek Anaszewski
@ 2020-03-23  6:09       ` Denis Osterland-Heim
  2020-03-23  9:08         ` Denis Osterland-Heim
  0 siblings, 1 reply; 15+ messages in thread
From: Denis Osterland-Heim @ 2020-03-23  6:09 UTC (permalink / raw)
  To: pavel, jacek.anaszewski
  Cc: dmurphy, mark.rutland, uwe, linux-kernel, robh+dt, devicetree,
	linux-leds

Hi,

Am Sonntag, den 22.03.2020, 15:56 +0100 schrieb Jacek Anaszewski:
> On 3/21/20 4:20 PM, Pavel Machek wrote:
> > Hi!
> > 
> > > led_pwm_set() now returns an error when setting the PWM fails.
> > > 
> > > Cc: Uwe Kleine-König <uwe@kleine-koenig.org>
> > > Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>
> > 
> > I applied 1 and 2, but 3 failed for me. I'll push updated -next, can
> > you see what is going on there?
> 
> Check the contents of the patch after writing it on a disk.
> In my case it contains a block of random characters.
> It is probably due to Content-Transfer-Encoding: base64.
> 
strange.
In the version I received by CC, there is no garbage, but also no auto appended footer.

I will send the mail just to linux-leds so we should all receive the same mail.

I wonder if the 'ö' in König causes this trouble in my send path.

Regards Denis


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. 
- For general information on data protection and your respective rights please visit https://www.diehl.com/group/en/transparency-and-information-obligations/

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

* Re: [PATCH v4 3/5] leds: pwm: check result of led_pwm_set() in led_pwm_add()
  2020-03-23  6:09       ` Denis Osterland-Heim
@ 2020-03-23  9:08         ` Denis Osterland-Heim
  0 siblings, 0 replies; 15+ messages in thread
From: Denis Osterland-Heim @ 2020-03-23  9:08 UTC (permalink / raw)
  To: pavel, jacek.anaszewski
  Cc: dmurphy, mark.rutland, uwe, linux-kernel, robh+dt, devicetree,
	linux-leds

Hi again,

Am Montag, den 23.03.2020, 07:09 +0100 schrieb Denis Osterland-Heim:
> Hi,
> 
> Am Sonntag, den 22.03.2020, 15:56 +0100 schrieb Jacek Anaszewski:
> > On 3/21/20 4:20 PM, Pavel Machek wrote:
> > > Hi!
> > > 
> > > > led_pwm_set() now returns an error when setting the PWM fails.
> > > > 
> > > > Cc: Uwe Kleine-König <uwe@kleine-koenig.org>
> > > > Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>
> > > 
> > > I applied 1 and 2, but 3 failed for me. I'll push updated -next, can
> > > you see what is going on there?
> > 
> > Check the contents of the patch after writing it on a disk.
> > In my case it contains a block of random characters.
> > It is probably due to Content-Transfer-Encoding: base64.
> > 
> 
> strange.
> In the version I received by CC, there is no garbage, but also no auto appended footer.
> 
> I will send the mail just to linux-leds so we should all receive the same mail.
I received no mail :/ and when I look at https://patches.linaro.org/project/linux-leds/list/
I would expect that you received nothing, too.

> 
> I wonder if the 'ö' in König causes this trouble in my send path.
I will send the patch without the Cc line, maybe this fixes the problem at your side.

Regards Denis

> 
> Regards Denis


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. 
- For general information on data protection and your respective rights please visit https://www.diehl.com/group/en/transparency-and-information-obligations/

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

* Re: [PATCH v4 5/5] leds: pwm: add reference to common leds for default-state
  2020-03-21  8:15 ` [PATCH v4 5/5] leds: pwm: add reference to common leds for default-state Denis Osterland-Heim
  2020-03-21 15:15   ` Pavel Machek
@ 2020-03-31 17:36   ` Rob Herring
  1 sibling, 0 replies; 15+ messages in thread
From: Rob Herring @ 2020-03-31 17:36 UTC (permalink / raw)
  To: Denis Osterland-Heim
  Cc: dmurphy, pavel, mark.rutland, jacek.anaszewski, robh+dt,
	linux-kernel, Denis Osterland-Heim, linux-leds, devicetree

On Sat, 21 Mar 2020 08:15:51 +0000, Denis Osterland-Heim wrote:
> 
> The default-state is now supported for PWM leds.
> 
> Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>
> ---
>  Documentation/devicetree/bindings/leds/leds-pwm.txt | 2 ++
>  1 file changed, 2 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

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

end of thread, other threads:[~2020-03-31 17:36 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-21  8:15 [PATCH v4 0/5] leds: pwm: add support for default-state device Denis Osterland-Heim
2020-03-21  8:15 ` [PATCH v4 5/5] leds: pwm: add reference to common leds for default-state Denis Osterland-Heim
2020-03-21 15:15   ` Pavel Machek
2020-03-22  7:59     ` Denis Osterland-Heim
2020-03-31 17:36   ` Rob Herring
2020-03-21  8:15 ` [PATCH v4 3/5] leds: pwm: check result of led_pwm_set() in led_pwm_add() Denis Osterland-Heim
2020-03-21 15:20   ` Pavel Machek
2020-03-21 17:13     ` Denis Osterland-Heim
2020-03-22  7:51       ` Denis Osterland-Heim
2020-03-22 14:56     ` Jacek Anaszewski
2020-03-23  6:09       ` Denis Osterland-Heim
2020-03-23  9:08         ` Denis Osterland-Heim
2020-03-21  8:15 ` [PATCH v4 2/5] leds: pwm: remove useless pwm_period_ns Denis Osterland-Heim
2020-03-21  8:15 ` [PATCH v4 1/5] leds: pwm: remove header Denis Osterland-Heim
2020-03-21  8:15 ` [PATCH v4 4/5] leds: pwm: add support for default-state device property Denis Osterland-Heim

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