rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/2] rust: Add basic clock bindings
@ 2025-02-21  6:33 Viresh Kumar
  2025-02-21  6:33 ` [PATCH V2 1/2] rust: Add clk helpers Viresh Kumar
  2025-02-21  6:33 ` [PATCH V2 2/2] rust: Add basic bindings for clk APIs Viresh Kumar
  0 siblings, 2 replies; 15+ messages in thread
From: Viresh Kumar @ 2025-02-21  6:33 UTC (permalink / raw)
  To: Alex Gaynor, Alice Ryhl, Andreas Hindborg, Benno Lossin,
	Björn Roy Baron, Boqun Feng, Gary Guo, Michael Turquette,
	Miguel Ojeda, Stephen Boyd, Trevor Gross
  Cc: Viresh Kumar, Russell King, linux-clk, linux-kernel,
	rust-for-linux

Hello,

This adds initial bindings for the clk APIs. These provide the minimal
functionality needed for common use cases, making them straightforward
to introduce in the first iteration.

These will be used by Rust based cpufreq / OPP layers to begin with.

For now I have added them under the maintainership umbrella of the common clk
framework, please let me know if I should do it differently.

This was posted earlier as part of the series implementing cpufreq/OPP Rust
bindings [1] (since its V6 version). In order to make sure this gets properly
reviewed and I don't accidentally miss relevant reviewers, I am posting it
separately now.

If possible, I would like to get these merged via the PM tree along with
cpufreq/OPP bindings, but its okay otherwise too.

--
Viresh

[1] https://lore.kernel.org/all/cover.1738832118.git.viresh.kumar@linaro.org/

V1->V2:
- Post this as an independent series.
- Include more APIs, apart from clk_get() and clk_put().

Viresh Kumar (2):
  rust: Add clk helpers
  rust: Add basic bindings for clk APIs

 MAINTAINERS                     |   2 +
 rust/bindings/bindings_helper.h |   1 +
 rust/helpers/clk.c              |  57 +++++++++++++++++
 rust/helpers/helpers.c          |   1 +
 rust/kernel/clk.rs              | 104 ++++++++++++++++++++++++++++++++
 rust/kernel/lib.rs              |   1 +
 6 files changed, 166 insertions(+)
 create mode 100644 rust/helpers/clk.c
 create mode 100644 rust/kernel/clk.rs

-- 
2.31.1.272.g89b43f80a514


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-03-06  4:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-21  6:33 [PATCH V2 0/2] rust: Add basic clock bindings Viresh Kumar
2025-02-21  6:33 ` [PATCH V2 1/2] rust: Add clk helpers Viresh Kumar
2025-02-21 13:19   ` Daniel Almeida
2025-02-21  6:33 ` [PATCH V2 2/2] rust: Add basic bindings for clk APIs Viresh Kumar
2025-02-21 13:30   ` Daniel Almeida
2025-02-21 13:56   ` Danilo Krummrich
2025-02-21 14:29     ` Daniel Almeida
2025-02-21 14:47       ` Danilo Krummrich
2025-02-21 15:28         ` Sebastian Reichel
2025-02-21 21:59           ` Rob Herring
2025-02-24  9:59             ` Viresh Kumar
2025-03-05 20:09               ` Rob Herring
2025-03-06  4:48                 ` Viresh Kumar
2025-02-24  9:45         ` Viresh Kumar
2025-02-21 14:42   ` Daniel Almeida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).