[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250611102908.212514-1-remo@buenzli.dev>
Date: Wed, 11 Jun 2025 12:28:59 +0200
From: Remo Senekowitsch <remo@...nzli.dev>
To: Rob Herring <robh@...nel.org>,
Saravana Kannan <saravanak@...gle.com>,
Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <lossin@...nel.org>,
Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>,
Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakr@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Dirk Behme <dirk.behme@...bosch.com>,
Remo Senekowitsch <remo@...nzli.dev>
Cc: linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org,
rust-for-linux@...r.kernel.org
Subject: [PATCH v8 0/9] More Rust bindings for device property reads
changes in v8:
* Use a custom enum instead of `Either`, which is scheduled for removal.
* Add Tested-by tags from Dirk Behme (thanks!)
* Implement `Display` directly on `FwNode`, which prints the full path
by default. Printing only the name is still possible with the method
`display_name`.
* Rebase onto 6.16-rc1.
* Remove `property_present` from `Device` and update users.
Best regards,
Remo
Remo Senekowitsch (9):
rust: device: Create FwNode abstraction for accessing device
properties
rust: device: Enable accessing the FwNode of a Device
rust: device: Move property_present() to FwNode
rust: device: Enable printing fwnode name and path
rust: device: Introduce PropertyGuard
rust: device: Implement accessors for firmware properties
rust: device: Add child accessor and iterator
rust: device: Add property_get_reference_args
samples: rust: platform: Add property read examples
MAINTAINERS | 1 +
drivers/cpufreq/rcpufreq_dt.rs | 3 +-
drivers/of/unittest-data/tests-platform.dtsi | 3 +
rust/helpers/helpers.c | 1 +
rust/helpers/property.c | 8 +
rust/kernel/device.rs | 20 +-
rust/kernel/device/property.rs | 589 +++++++++++++++++++
samples/rust/rust_driver_platform.rs | 60 +-
8 files changed, 678 insertions(+), 7 deletions(-)
create mode 100644 rust/helpers/property.c
create mode 100644 rust/kernel/device/property.rs
--
2.49.0
Powered by blists - more mailing lists