rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Auxiliary bus Rust abstractions
@ 2025-03-12  0:19 Danilo Krummrich
  2025-03-12  0:19 ` [PATCH 1/4] rust: types: add `Opaque::zeroed` Danilo Krummrich
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Danilo Krummrich @ 2025-03-12  0:19 UTC (permalink / raw)
  To: gregkh, rafael, ojeda, alex.gaynor, boqun.feng, gary, bjorn3_gh,
	benno.lossin, a.hindborg, aliceryhl, tmgross, airlied, acourbot,
	jhubbard
  Cc: linux-kernel, rust-for-linux, Danilo Krummrich

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.23482-2-dakr@kernel.org/
[2] https://web.git.kernel.org/pub/scm/linux/kernel/git/dakr/linux.git/log/?h=rust/auxiliary

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


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

end of thread, other threads:[~2025-03-12 20:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-12  0:19 [PATCH 0/4] Auxiliary bus Rust abstractions Danilo Krummrich
2025-03-12  0:19 ` [PATCH 1/4] rust: types: add `Opaque::zeroed` Danilo Krummrich
2025-03-12  0:19 ` [PATCH 2/4] rust: auxiliary: add auxiliary driver abstractions Danilo Krummrich
2025-03-12  0:19 ` [PATCH 3/4] rust: auxiliary: add auxiliary registration Danilo Krummrich
2025-03-12  0:19 ` [PATCH 4/4] samples: rust: add Rust auxiliary driver sample Danilo Krummrich
2025-03-12  7:14 ` [PATCH 0/4] Auxiliary bus Rust abstractions Greg KH
2025-03-12 20:09   ` Danilo Krummrich

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).