On Tue, 2026-05-26 at 19:04 +0200, Maurice Hieronymus via B4 Relay
wrote:
> Add a Rust binding for clk_rate_exclusive_get() /
> clk_rate_exclusive_put()
> and use it in pwm-th1520, which previously carried a TODO noting the
> missing binding.
>
> Based on pwm/for-next.
>
> Signed-off-by: Maurice Hieronymus <mhi@mailbox.org>
> ---
> Maurice Hieronymus (2):
> rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get
> pwm: th1520: Lock clock rate with clk_rate_exclusive_get
>
> drivers/pwm/pwm_th1520.rs | 8 +++---
> rust/kernel/clk.rs | 65
> +++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 68 insertions(+), 5 deletions(-)
> ---
> base-commit: 0e5e0db3e954b32a410ab4f74a4faac7a0e8889f
> change-id: 20260526-rate-exclusive-get-th1520-764a949de18e
>
> Best regards,
Any opinions on this patch?