[PATCH 0/2] rust: clk: Add ExclusiveClk and use it in pwm-th1520

Maurice Hieronymus via B4 Relay posted 2 patches 1 week, 6 days ago
There is a newer version of this series
drivers/pwm/pwm_th1520.rs |  8 +++---
rust/kernel/clk.rs        | 65 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+), 5 deletions(-)
[PATCH 0/2] rust: clk: Add ExclusiveClk and use it in pwm-th1520
Posted by Maurice Hieronymus via B4 Relay 1 week, 6 days ago
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,
-- 
Maurice Hieronymus <mhi@mailbox.org>
Re: [PATCH 0/2] rust: clk: Add ExclusiveClk and use it in pwm-th1520
Posted by Maurice Hieronymus 4 days, 13 hours ago
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?