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

Daniel Almeida daniel.almeida at collabora.com
Tue Oct 20 06:03:47 PDT 2026



> On 20 Oct 2026, at 09:59, Uwe Kleine-König <ukleinek at kernel.org> wrote:
> 
> Hello,
> 
> On Sat, Jul 11, 2026 at 12:16:28PM +0200, Maurice Hieronymus 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.
>> 
>> Signed-off-by: Maurice Hieronymus <mhi at 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 | 18 ++++++++-----
>> rust/kernel/clk.rs        | 67 +++++++++++++++++++++++++++++++++++++++++++++++
>> 2 files changed, 79 insertions(+), 6 deletions(-)
>> ---
>> base-commit: 92010229c4b38897f1319d260162d2f96925ed17
>> change-id: 20260526-rate-exclusive-get-th1520-764a949de18e
>> prerequisite-change-id: 20250909-clk-type-state-c01aa7dd551d:v5
>> prerequisite-patch-id: 2d3dc45c241d9062a0d2546ec649eec7970fa50a
>> prerequisite-patch-id: 67ad535fe110207ebc79045ba022ebb7137b0309
>> prerequisite-patch-id: 3d1d8ee5c2a4957edd0807b7a5cb65dabab345b5
>> prerequisite-patch-id: e2659037b8aaf51831da099cc568ad5b3c24a4dd
> 
> I didn't track these dependencies, but the change looks fine for me. Who
> is supposed to merge it? I can take it via pwm, but I guess a rust tree
> is more appropriate?!
> 
> Best regards
> Uwe

Please no,

See [0] instead, which also includes a newer version of this patch.

[0]: https://lore.kernel.org/rust-for-linux/20261013-clk-type-state-v6-1-a5e9977b3509@collabora.com/




More information about the linux-riscv mailing list