Re: (subset) [PATCH v7 1/1] leds: st1202: Add hardware-accelerated blink support
From: Lee Jones
Date: Wed Sep 02 2026 - 11:36:21 EST
On Fri, 14 Aug 2026 10:16:54 +0100, Manuel Fombuena wrote:
> Implement blink_set() to enable hardware-accelerated blinking via the
> timer trigger. The LED1202 pattern engine is used to produce a two-step
> sequence: full brightness for delay_on, off for delay_off, repeating
> indefinitely.
>
> Requested delays are clamped to the hardware range [22ms, 5610ms] then
> rounded up to the nearest 22ms step. Clamping before rounding prevents
> integer overflow in roundup() for extreme input values; since
> ST1202_MILLIS_PATTERN_DUR_MAX is an exact multiple of
> ST1202_MILLIS_PATTERN_DUR_MIN, rounding a clamped value cannot exceed
> the maximum. A zero delay is replaced with the default of 500ms
> independently for each of delay_on and delay_off.
>
> [...]
Applied, thanks!
[1/1] leds: st1202: Add hardware-accelerated blink support
commit: d8328aec54986247fee1586d2a1e85485324709c
--
Lee Jones [李琼斯]