[PATCH RFC 0/4] rust: add basic serial device bus abstractions

Markus Probst posted 4 patches 1 month, 2 weeks ago
MAINTAINERS                        |   3 +
drivers/tty/serdev/core.c          |   3 +-
include/linux/serdev.h             |   2 +
rust/bindings/bindings_helper.h    |   1 +
rust/helpers/helpers.c             |   1 +
rust/helpers/serdev.c              |  22 +
rust/kernel/lib.rs                 |   2 +
rust/kernel/serdev.rs              | 815 +++++++++++++++++++++++++++++++++++++
samples/rust/Kconfig               |  10 +
samples/rust/Makefile              |   1 +
samples/rust/rust_driver_serdev.rs | 175 ++++++++
11 files changed, 1034 insertions(+), 1 deletion(-)
[PATCH RFC 0/4] rust: add basic serial device bus abstractions
Posted by Markus Probst 1 month, 2 weeks ago
This patch series adds the serdev device bus rust abstraction into the
kernel.

This abstraction will be used by a driver I am currently working on,
which targets the MCU devices in Synology devices.

Kari Argillander also messaged me, stating that he wants to write a
watchdog driver with this abstraction (needing initial device data).

@Rob: Are you willing to maintain these rust abstractions yourself,
as you are the expert on this subsystem, otherwise I would take care of
it with a "SERIAL DEVICE BUS [RUST]" section in the MAINTAINERS file. In
the second case, I assume you are going to pick those patches as-is into
your tree, after they have been reviewed?

Signed-off-by: Markus Probst <markus.probst@posteo.de>
---
Kari Argillander (1):
      serdev: Export internal is_serdev_device() for drivers

Markus Probst (3):
      rust: add basic serial device bus abstractions
      samples: rust: add Rust serial device bus sample device driver
      rust: Add serdev rust abstractions to MAINTAINERS file

 MAINTAINERS                        |   3 +
 drivers/tty/serdev/core.c          |   3 +-
 include/linux/serdev.h             |   2 +
 rust/bindings/bindings_helper.h    |   1 +
 rust/helpers/helpers.c             |   1 +
 rust/helpers/serdev.c              |  22 +
 rust/kernel/lib.rs                 |   2 +
 rust/kernel/serdev.rs              | 815 +++++++++++++++++++++++++++++++++++++
 samples/rust/Kconfig               |  10 +
 samples/rust/Makefile              |   1 +
 samples/rust/rust_driver_serdev.rs | 175 ++++++++
 11 files changed, 1034 insertions(+), 1 deletion(-)
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251217-rust_serdev-ee5481e9085c