[PATCH 0/2] leds: use brightness_set_blocking for sleepable callbacks
From: Runyu Xiao
Date: Mon Jun 15 2026 - 11:06:34 EST
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