Skip to content

Commit 9d61ec5

Browse files
committed
Merge tag 'led_fixes_for_4.15-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds
Pull LED fix from Jacek Anaszewski: "The commit 2b83ff9 for 4.15-rc6, which was fixing LED brightness setting after clearing delay_off broke the behavior on any alteration of delay_on{off} properties, due to use of a LED core helper that does too much for this particular case" * tag 'led_fixes_for_4.15-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds: leds: core: Fix regression caused by commit 2b83ff9
2 parents c11a5fe + 7b6af2c commit 9d61ec5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/leds/led-core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ void led_blink_set(struct led_classdev *led_cdev,
186186
unsigned long *delay_on,
187187
unsigned long *delay_off)
188188
{
189-
led_stop_software_blink(led_cdev);
189+
del_timer_sync(&led_cdev->blink_timer);
190190

191+
clear_bit(LED_BLINK_SW, &led_cdev->work_flags);
191192
clear_bit(LED_BLINK_ONESHOT, &led_cdev->work_flags);
192193
clear_bit(LED_BLINK_ONESHOT_STOP, &led_cdev->work_flags);
193194

0 commit comments

Comments
 (0)