All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 00/28] leds: cleanups and fwnode refcounting bug fixes
@ 2021-05-10  9:50 Andy Shevchenko
  2021-05-10  9:50 ` [PATCH v1 01/28] leds: class: The -ENOTSUPP should never be seen by user space Andy Shevchenko
                   ` (28 more replies)
  0 siblings, 29 replies; 62+ messages in thread
From: Andy Shevchenko @ 2021-05-10  9:50 UTC (permalink / raw)
  To: Pavel Machek, Andy Shevchenko, Amireddy Mallikarjuna reddy,
	Linus Walleij, Marek Behún, Abanoub Sameh, Dan Murphy,
	Krzysztof Kozlowski, linux-leds, linux-kernel
  Cc: Andy Shevchenko

When analyzing the current state of affairs with fwnode reference counting 
I found that a lot of core doesn't take it right. Here is a bunch of
corresponding fixes against LED drivers.

The series includes some cleanups and a few other fixes grouped by a driver.

First two patches are taking care of -ENOTSUPP error code too  prevent its
appearance in the user space.

Andy Shevchenko (28):
  leds: class: The -ENOTSUPP should never be seen by user space
  leds: core: The -ENOTSUPP should never be seen by user space
  leds: el15203000: Give better margin for usleep_range()
  leds: el15203000: Make error handling more robust
  leds: el15203000: Correct headers (of*.h -> mod_devicetable.h)
  leds: el15203000: Introduce to_el15203000_led() helper
  leds: lgm-sso: Fix clock handling
  leds: lgm-sso: Put fwnode in any case during ->probe()
  leds: lgm-sso: Don't spam logs when probe is deferred
  leds: lgm-sso: Remove unneeded of_match_ptr()
  leds: lgm-sso: Remove explicit managed resource cleanups
  leds: lgm-sso: Drop duplicate NULL check for GPIO operations
  leds: lgm-sso: Convert to use list_for_each_entry*() API
  leds: lm3532: select regmap I2C API
  leds: lm3532: Make error handling more robust
  leds: lm36274: Put fwnode in error case during ->probe()
  leds: lm36274: Correct headers (of*.h -> mod_devicetable.h)
  leds: lm3692x: Put fwnode in any case during ->probe()
  leds: lm3692x: Correct headers (of*.h -> mod_devicetable.h)
  leds: lm3697: Update header block to reflect reality
  leds: lm3697: Make error handling more robust
  leds: lm3697: Don't spam logs when probe is deferred
  leds: lp50xx: Put fwnode in error case during ->probe()
  leds: lt3593: Put fwnode in any case during ->probe()
  leds: lt3593: Make use of device properties
  leds: pwm: Make error handling more robust
  leds: rt8515: Put fwnode in any case during ->probe()
  leds: sgm3140: Put fwnode in any case during ->probe()

 drivers/leds/Kconfig              |  7 ++-
 drivers/leds/blink/leds-lgm-sso.c | 86 +++++++++++++------------------
 drivers/leds/flash/leds-rt8515.c  |  4 +-
 drivers/leds/led-class.c          |  4 --
 drivers/leds/led-core.c           |  7 ++-
 drivers/leds/leds-el15203000.c    | 54 ++++++++-----------
 drivers/leds/leds-lm3532.c        |  7 +--
 drivers/leds/leds-lm36274.c       |  3 +-
 drivers/leds/leds-lm3692x.c       | 11 ++--
 drivers/leds/leds-lm3697.c        | 22 ++++----
 drivers/leds/leds-lp50xx.c        |  2 +-
 drivers/leds/leds-lt3593.c        | 13 ++---
 drivers/leds/leds-pwm.c           | 16 +++---
 drivers/leds/leds-sgm3140.c       |  8 +--
 14 files changed, 106 insertions(+), 138 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2021-05-29 10:46 UTC | newest]

Thread overview: 62+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10  9:50 [PATCH v1 00/28] leds: cleanups and fwnode refcounting bug fixes Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 01/28] leds: class: The -ENOTSUPP should never be seen by user space Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 02/28] leds: core: " Andy Shevchenko
2021-05-28 10:03   ` Pavel Machek
2021-05-28 10:43     ` Andy Shevchenko
2021-05-29  9:42       ` Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 03/28] leds: el15203000: Give better margin for usleep_range() Andy Shevchenko
2021-05-28 10:04   ` Pavel Machek
2021-05-28 10:45     ` Andy Shevchenko
2021-05-29  9:41       ` Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 04/28] leds: el15203000: Make error handling more robust Andy Shevchenko
2021-05-28 20:59   ` Oleh Kravchenko
2021-05-10  9:50 ` [PATCH v1 05/28] leds: el15203000: Correct headers (of*.h -> mod_devicetable.h) Andy Shevchenko
2021-05-28 21:00   ` Oleh Kravchenko
2021-05-29  9:45     ` Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 06/28] leds: el15203000: Introduce to_el15203000_led() helper Andy Shevchenko
2021-05-28 21:01   ` Oleh Kravchenko
2021-05-10  9:50 ` [PATCH v1 07/28] leds: lgm-sso: Fix clock handling Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 08/28] leds: lgm-sso: Put fwnode in any case during ->probe() Andy Shevchenko
2021-05-28 10:08   ` Pavel Machek
2021-05-28 10:46     ` Andy Shevchenko
2021-05-29  9:28     ` Andy Shevchenko
2021-05-29 10:46       ` Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 09/28] leds: lgm-sso: Don't spam logs when probe is deferred Andy Shevchenko
2021-05-28 10:11   ` Pavel Machek
2021-05-28 10:47     ` Andy Shevchenko
2021-05-29  9:54       ` Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 10/28] leds: lgm-sso: Remove unneeded of_match_ptr() Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 11/28] leds: lgm-sso: Remove explicit managed resource cleanups Andy Shevchenko
2021-05-28 10:09   ` Pavel Machek
2021-05-28 10:49     ` Andy Shevchenko
2021-05-29  9:46       ` Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 12/28] leds: lgm-sso: Drop duplicate NULL check for GPIO operations Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 13/28] leds: lgm-sso: Convert to use list_for_each_entry*() API Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 14/28] leds: lm3532: select regmap I2C API Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 15/28] leds: lm3532: Make error handling more robust Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 16/28] leds: lm36274: Put fwnode in error case during ->probe() Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 17/28] leds: lm36274: Correct headers (of*.h -> mod_devicetable.h) Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 18/28] leds: lm3692x: Put fwnode in any case during ->probe() Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 19/28] leds: lm3692x: Correct headers (of*.h -> mod_devicetable.h) Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 20/28] leds: lm3697: Update header block to reflect reality Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 21/28] leds: lm3697: Make error handling more robust Andy Shevchenko
2021-05-28 10:10   ` Pavel Machek
2021-05-28 10:50     ` Andy Shevchenko
2021-05-29  9:50       ` Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 22/28] leds: lm3697: Don't spam logs when probe is deferred Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 23/28] leds: lp50xx: Put fwnode in error case during ->probe() Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 24/28] leds: lt3593: Put fwnode in any " Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 25/28] leds: lt3593: Make use of device properties Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 26/28] leds: pwm: Make error handling more robust Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 27/28] leds: rt8515: Put fwnode in any case during ->probe() Andy Shevchenko
2021-05-10  9:50 ` [PATCH v1 28/28] leds: sgm3140: " Andy Shevchenko
2021-05-28 10:14   ` Pavel Machek
2021-05-28 10:59     ` Andy Shevchenko
2021-05-29  9:58       ` Andy Shevchenko
2021-05-17  7:30 ` [PATCH v1 00/28] leds: cleanups and fwnode refcounting bug fixes Andy Shevchenko
2021-05-24 14:56   ` Andy Shevchenko
2021-05-24 17:49     ` Pavel Machek
2021-05-24 18:39       ` Andy Shevchenko
2021-05-28 10:02   ` Pavel Machek
2021-05-28 11:05     ` Andy Shevchenko
2021-05-28 20:34       ` Pavel Machek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.