Re: [RESEND PATCH v6 3/3] leds: tlc5925: Add support for non blocking operations
From: Pavel Machek
Date: Sat Jul 30 2022 - 17:22:17 EST
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.
Attachment:
signature.asc
Description: PGP signature