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

Michal Wilczynski m.wilczynski at samsung.com
Mon Jun 8 03:08:37 PDT 2026



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 at google.com>
> Signed-off-by: Maurice Hieronymus <mhi at mailbox.org>
> ---
>  drivers/pwm/pwm_th1520.rs | 8 +++-----
>  1 file changed, 3 insertions(+), 5 deletions(-)
> 

Reviewed-by: Michal Wilczynski <m.wilczynski at samsung.com>




More information about the linux-riscv mailing list