The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/2] leds: use brightness_set_blocking for sleepable callbacks
@ 2026-06-15 14:57 Runyu Xiao
  2026-06-15 14:57 ` [PATCH 1/2] leds: lm3530: use brightness_set_blocking for sleepable callback Runyu Xiao
  2026-06-15 14:57 ` [PATCH 2/2] leds: menf21bmc: " Runyu Xiao
  0 siblings, 2 replies; 5+ messages in thread
From: Runyu Xiao @ 2026-06-15 14:57 UTC (permalink / raw)
  To: Lee Jones, Pavel Machek, linux-leds
  Cc: Andreas Werner, Andrew Morton, Shreshtha Kumar Sahu, Bryan Wu,
	linux-kernel, jianhao.xu, runyu.xiao

This 2-patch series covers two LED callback contract mismatches that
were found by our static analysis tool and then manually reviewed
against the current tree.

Both reports preserve the same grounded issue: the callback may sleep
because it takes a mutex or performs I2C transfers, but the driver still
exposes it as brightness_set.  The corresponding PoCs keep the original
callback names and transport paths, and Lockdep reproduces the same
atomic-sleep class in both cases.

Patch 1 updates lm3530.
Patch 2 updates menf21bmc.

Both patches are build-tested and checkpatch-clean.  I do not have the
LM3530 or MEN 14F021P00 BMC hardware for runtime testing.

Runyu Xiao (2):
  leds: lm3530: use brightness_set_blocking for sleepable callback
  leds: menf21bmc: use brightness_set_blocking for sleepable callback

 drivers/leds/leds-lm3530.c    | 12 ++++++++----
 drivers/leds/leds-menf21bmc.c | 18 ++++++++++++------
 2 files changed, 20 insertions(+), 10 deletions(-)

-- 
2.34.1

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

end of thread, other threads:[~2026-07-02 10:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-15 14:57 [PATCH 0/2] leds: use brightness_set_blocking for sleepable callbacks Runyu Xiao
2026-06-15 14:57 ` [PATCH 1/2] leds: lm3530: use brightness_set_blocking for sleepable callback Runyu Xiao
2026-07-02 10:20   ` Lee Jones
2026-06-15 14:57 ` [PATCH 2/2] leds: menf21bmc: " Runyu Xiao
2026-07-02 10:45   ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox