[PATCH v4 0/9] More Rust bindings for device property reads

Remo Senekowitsch posted 9 patches 7 months, 2 weeks ago
There is a newer version of this series
MAINTAINERS                                  |   2 +-
drivers/of/unittest-data/tests-platform.dtsi |   3 +
rust/helpers/helpers.c                       |   1 +
rust/helpers/property.c                      |   8 +
rust/kernel/{device.rs => device/mod.rs}     |  20 +-
rust/kernel/device/property.rs               | 557 +++++++++++++++++++
samples/rust/rust_driver_platform.rs         |  71 ++-
7 files changed, 654 insertions(+), 8 deletions(-)
create mode 100644 rust/helpers/property.c
rename rust/kernel/{device.rs => device/mod.rs} (95%)
create mode 100644 rust/kernel/device/property.rs
[PATCH v4 0/9] More Rust bindings for device property reads
Posted by Remo Senekowitsch 7 months, 2 weeks ago
changes in v4:
* Avoid code duplication in `FwNode::display_path`.
* Add missing safety comment.
* Replace `PropertyGuard::required` with `PropertyGuard::required_by`
  to associate logs with the proper device.
* Split commit moving property_present into three separate ones:
  1. Create FwNode abstraction.
  2. Access FwNode via Device.
  3. Move property_present from Device to FwNode.

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: Add bindings for reading device properties
  rust: device: Add child accessor and iterator
  rust: device: Add property_get_reference_args
  samples: rust: platform: Add property read examples

 MAINTAINERS                                  |   2 +-
 drivers/of/unittest-data/tests-platform.dtsi |   3 +
 rust/helpers/helpers.c                       |   1 +
 rust/helpers/property.c                      |   8 +
 rust/kernel/{device.rs => device/mod.rs}     |  20 +-
 rust/kernel/device/property.rs               | 557 +++++++++++++++++++
 samples/rust/rust_driver_platform.rs         |  71 ++-
 7 files changed, 654 insertions(+), 8 deletions(-)
 create mode 100644 rust/helpers/property.c
 rename rust/kernel/{device.rs => device/mod.rs} (95%)
 create mode 100644 rust/kernel/device/property.rs

-- 
2.49.0
Re: [PATCH v4 0/9] More Rust bindings for device property reads
Posted by Remo Senekowitsch 7 months, 1 week ago
I haven't gotten any actionable feedback on this version.
What's the next step?

Best regards,
Remo
Re: [PATCH v4 0/9] More Rust bindings for device property reads
Posted by Danilo Krummrich 7 months, 1 week ago
On Mon, May 12, 2025 at 01:49:27PM +0200, Remo Senekowitsch wrote:
> I haven't gotten any actionable feedback on this version.
> What's the next step?

I wasn't around for the last days, but I'm catching up now. Will go through this
version soon.

- Danilo