misc device: support device drivers
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 34 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | rust: types: support fallible PinInit types in Opaque::pin_initrust/ | +4 | 5 replies | |
| 2/7 | rust: revocable: support fallible PinInit typesrust/ rust/ | +6 | 2 replies | |
| 3/7 | rust: devres: support fallible in-place init for datarust/ | +22 | 2 replies | |
| 4/7 | rust: faux: impl AsRef<Device<Bound>> for Registrationrust/ | +2 | 0 replies | |
| 5/7 | rust: miscdevice: properly support device driversrust/ samples/ | +143 | 6 replies | |
| 6/7 | rust: miscdevice: expose the parent device as &Device<Bound>rust/ samples/ | +128 | 5 replies | |
| 7/7 | rust: sample: misc: implement device driver samplesamples/ samples/ | +54 | 7 replies |
Reviews trailers per patch
3 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Christian Schrefl | Benno Lossin |
|---|---|---|
| 1/7 | R-b | |
| 2/7 | R-b | R-b |
| 3/7 | R-b | R-b |
| 4/7 | ||
| 5/7 | ||
| 6/7 | ||
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/7] misc device: support device drivers
This patch series adds support for device drivers to the misc device abstraction.
For design details, please see:
* patch 5 "rust: miscdevice: properly support device drivers"
* patch 6 "rust: miscdevice: expose the parent device as &Device<Bound>"
This patch series depends on the pin-init series from Benno [1] as well as on the misc device series from Christian [2], with UnsafePinned replaced with Opaque, as suggested by Alice, since UnsafePinned may still take a while to land.
A branch containing this series and its dependencies can be found in [3].
Thanks to Benno for his great help with pin-init!
[1] https://lore.kernel.org/rust-for-linux/[email protected]/
[2] https://lore.kernel.org/lkml/20250517-b4-rust_miscdevice_registrationdata-v3-0-cdb33e228d37@gmail.com/
[3] https://git.kernel.org/pub/scm/linux/kernel/git/dakr/linux.git/log/?h=rust/misc
Danilo Krummrich (7):
rust: types: support fallible PinInit types in Opaque::pin_init
rust: revocable: support fallible PinInit types
rust: devres: support fallible in-place init for data
rust: faux: impl AsRef<Device<Bound>> for Registration
rust: miscdevice: properly support device drivers
rust: miscdevice: expose the parent device as &Device<Bound>
rust: sample: misc: implement device driver sample
rust/kernel/devres.rs | 27 ++- rust/kernel/faux.rs | 4 +- rust/kernel/miscdevice.rs | 341 ++++++++++++++++++++++--------- rust/kernel/revocable.rs | 7 +- rust/kernel/types.rs | 8 +- samples/rust/Kconfig | 8 + samples/rust/rust_misc_device.rs | 73 +++++-- 7 files changed, 350 insertions(+), 118 deletions(-)
base-commit: d5e34ea41dda1500a4dc163d6e96395fe7adc681
Signature · 1 line
2.49.0