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

From: Michal Wilczynski

Date: Mon Jun 08 2026 - 06:22:59 EST




On 6/5/26 09:00, Maurice Hieronymus wrote:
> 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.
>
> Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Signed-off-by: Maurice Hieronymus <mhi@xxxxxxxxxxx>
> ---
> drivers/pwm/pwm_th1520.rs | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>

Reviewed-by: Michal Wilczynski <m.wilczynski@xxxxxxxxxxx>