[PATCH 2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get
Alice Ryhl
aliceryhl at google.com
Thu Jun 4 04:17:40 PDT 2026
On Tue, May 26, 2026 at 07:04:58PM +0200, Maurice Hieronymus via B4 Relay wrote:
> From: Maurice Hieronymus <mhi at mailbox.org>
>
> 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 at mailbox.org>
Reviewed-by: Alice Ryhl <aliceryhl at google.com>
More information about the linux-riscv
mailing list