| From: |
| Danilo Krummrich <dakr-AT-kernel.org> |
| To: |
| gregkh-AT-linuxfoundation.org, rafael-AT-kernel.org, ojeda-AT-kernel.org, alex.gaynor-AT-gmail.com, boqun.feng-AT-gmail.com, gary-AT-garyguo.net, bjorn3_gh-AT-protonmail.com, benno.lossin-AT-proton.me, a.hindborg-AT-kernel.org, aliceryhl-AT-google.com, tmgross-AT-umich.edu, airlied-AT-gmail.com, acourbot-AT-nvidia.com, jhubbard-AT-nvidia.com |
| Subject: |
| [PATCH 0/4] Auxiliary bus Rust abstractions |
| Date: |
| Wed, 12 Mar 2025 01:19:06 +0100 |
| Message-ID: |
| <20250312002741.453350-1-dakr@kernel.org> |
| Cc: |
| linux-kernel-AT-vger.kernel.org, rust-for-linux-AT-vger.kernel.org, Danilo Krummrich <dakr-AT-kernel.org> |
| Archive-link: |
| Article |
This series adds Rust abstractions for the auxiliary bus.
It implements the required abstractions to write auxiliary drivers and create
auxiliary device registrations. A driver sample illustrates how the
corresponding abstractions work.
The auxiliary abstractions are required for the Nova driver project, in order to
connect nova-core with the nova-drm driver.
This patch series depends on [1] (taken through the nova tree for v6.15); a
branch containing the patches, including the dependency can be found in [2].
[1] https://lore.kernel.org/rust-for-linux/20250306222336.234...
[2] https://web.git.kernel.org/pub/scm/linux/kernel/git/dakr/...
Danilo Krummrich (4):
rust: types: add `Opaque::zeroed`
rust: auxiliary: add auxiliary driver abstractions
rust: auxiliary: add auxiliary registration
samples: rust: add Rust auxiliary driver sample
MAINTAINERS | 2 +
rust/bindings/bindings_helper.h | 1 +
rust/helpers/auxiliary.c | 23 ++
rust/helpers/helpers.c | 1 +
rust/kernel/auxiliary.rs | 311 ++++++++++++++++++++++++++
rust/kernel/lib.rs | 2 +
rust/kernel/types.rs | 8 +
samples/rust/Kconfig | 10 +
samples/rust/Makefile | 1 +
samples/rust/rust_driver_auxiliary.rs | 99 ++++++++
10 files changed, 458 insertions(+)
create mode 100644 rust/helpers/auxiliary.c
create mode 100644 rust/kernel/auxiliary.rs
create mode 100644 samples/rust/rust_driver_auxiliary.rs
base-commit: b28786b190d1ae2df5e6a5181ad78c6f226ea3e1
--
2.48.1