Re: [PATCH v2] leds: core: Flush scheduled work for system suspend

2020-07-12 Thread Pavel Machek
Hi! > > EXPORT_SYMBOL_GPL(led_classdev_suspend); > > > > Acked-by: Jacek Anaszewski > > Pavel, this needs to go to stable as well, so let's add the tag: > > Fixes: 81fe8e5b73e3 ("leds: core: Add led_set_brightness_nosleep{nopm} > functions") Applied, and I added the tag (thanks).

Re: [PATCH v2] leds: core: Flush scheduled work for system suspend

2020-07-02 Thread Jacek Anaszewski
Hi Kai-Heng, Thank you for the update. On 7/2/20 7:45 AM, Kai-Heng Feng wrote: Sometimes LED won't be turned off by LED_CORE_SUSPENDRESUME flag upon system suspend. led_set_brightness_nopm() uses schedule_work() to set LED brightness. However, there's no guarantee that the scheduled work gets

[PATCH v2] leds: core: Flush scheduled work for system suspend

2020-07-01 Thread Kai-Heng Feng
Sometimes LED won't be turned off by LED_CORE_SUSPENDRESUME flag upon system suspend. led_set_brightness_nopm() uses schedule_work() to set LED brightness. However, there's no guarantee that the scheduled work gets executed because no one flushes the work. So flush the scheduled work to make