diff options
| author | Craig McQueen <craig@mcqueen.au> | 2026-04-23 21:36:38 +1000 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-06-17 11:29:05 +0100 |
| commit | f92135f100669b508dd62b424ab20bcb33494c79 (patch) | |
| tree | a71098deb0df6087c2c28593f26c307fdd484d3a /drivers/phy/eswin/git@git.tavy.me:linux.git | |
| parent | 6ebff754c46e2277c831670fa1f0b5043250eb77 (diff) | |
leds: core: Fix race condition for software blink
led_set_brightness() function: Change handling of software blink to
avoid race conditions when stopping blink and setting brightness.
Triggers may call led_set_brightness(LED_OFF),
led_set_brightness(LED_FULL) in quick succession to disable blinking and
turn the LED on. If the delayed work task has not yet disabled blinking
by the time the second call occurs, then the brightness also needs to be
changed in the delayed work task.
Signed-off-by: Craig McQueen <craig@mcqueen.au>
Link: https://patch.msgid.link/20260423113638.2079302-1-craig@mcqueen.au
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
