Hi! > After commit ba8a86e4dadb ("leds: trigger/tty: Use > led_set_brightness_sync() from workqueue") this is the second try to > pick the right function to set the LED brightness from a trigger. > > led_set_brightness_sync() has the problem that it doesn't work for LEDs > without a .brightness_set_blocking() callback. This is (among others) > the case for LEDs connected to non-sleeping GPIOs. > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> I don't think this is right. _nosleep calls _nopm, which assmues it can't sleep, and schedules another workqueue to set the LED. Best regards, Pavel -- People of Russia, stop Putin before his war on Ukraine escalates.
Attachment:
signature.asc
Description: PGP signature