Re: [PATCH 2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get

From: Alice Ryhl

Date: Thu Jun 04 2026 - 07:28:50 EST


On Tue, May 26, 2026 at 07:04:58PM +0200, Maurice Hieronymus via B4 Relay wrote:
> From: Maurice Hieronymus <mhi@xxxxxxxxxxx>
>
> The driver derives period and duty cycle from the clock rate read at
> probe, so a later rate change would silently miscompute waveforms.
> Switch to the new ExclusiveClk wrapper to hold the rate for the lifetime
> of the driver data and drop the corresponding TODO.
>
> Signed-off-by: Maurice Hieronymus <mhi@xxxxxxxxxxx>

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>