Messages in this thread | | | Date | Sat, 30 Jul 2022 23:22:05 +0200 | From | Pavel Machek <> | Subject | Re: [RESEND PATCH v6 3/3] leds: tlc5925: Add support for non blocking operations |
| |
On Fri 2022-07-22 10:11:46, Jean-Jacques Hiblot wrote: > Settings multiple LEDs in a row can be a slow operation because of the
"Setting"
> time required to acquire the bus and prepare the transfer. > And, in most cases, it is not required that the operation is synchronous. > Implementing the non-blocking brightness_set() for such cases. > A work queue is used to perform the actual SPI transfer. > > The blocking method is still available in case someone needs to perform > this operation synchronously (ie by calling > led_set_brightness_sync()).
Why do this? We have other LEDs that are slow, and core already has workqueues (etc) to deal with that...
Best regards, Pavel -- People of Russia, stop Putin before his war on Ukraine escalates. [unhandled content-type:application/pgp-signature] | |