rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/3] Initial work for Rust abstraction for HID device driver development
@ 2025-06-29  4:51 Rahul Rameshbabu
  2025-06-29  4:51 ` [PATCH v1 1/3] HID: core: Change hid_driver to use a const char* for name Rahul Rameshbabu
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Rahul Rameshbabu @ 2025-06-29  4:51 UTC (permalink / raw)
  To: linux-input, rust-for-linux
  Cc: Benjamin Tissoires, Miguel Ojeda, Alex Gaynor, Boqun Feng,
	Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg,
	Alice Ryhl, Trevor Gross, Danilo Krummrich, Daniel Brooks,
	Rahul Rameshbabu

Hello again,

I have come back with a revision of my HID binding work based on feedback from
the maintainers and the community. Going with Benjamin Tissoires's feedback, I
have opted to implement support for a much simpler HID device as a starting
point for this work. I have gone ahead with making a Rust reference driver for
the Glorious PC Gaming Race Model O and O- mice. I chose these devices because
they were easily accessible for my development work. I have gone ahead with
naming this driver the "Glorious Rust" driver. My binding work now adopts the
core infrastructure Danilo Krummrich has provided for the Rust for Linux
community.

I have decided to move this series out of RFC status, since I feel the
implemented code is in a stable state. It could be used for other drivers as-is
with the caveat that those drivers are only performing report fixups. Hopefully,
a HID-BPF solution can be taken for production report fixup purposes. In
reality, I will need to bring more of the HID subsystem functionality to Rust to
promote implementations of more complex drivers, such as the USB Monitor Control
driver I am planning to implement (as expressed in my RFC series). I am hoping
to do a better job of documenting my progress involving this work on my blog
while I am working on each iteration/addition for anyone interested in following
along outside my mailing list posts.

Thanks,
Rahul Rameshbabu

Link: https://lore.kernel.org/rust-for-linux/20250313160220.6410-2-sergeantsagara@protonmail.com/
Link: https://binary-eater.github.io/tags/usb-monitor-control/

Rahul Rameshbabu (3):
  HID: core: Change hid_driver to use a const char* for name
  rust: core abstractions for HID drivers
  rust: hid: Glorious Gaming PC Race Model O and O- mice reference
    driver

 MAINTAINERS                      |  14 +
 drivers/hid/Kconfig              |  16 ++
 drivers/hid/Makefile             |   1 +
 drivers/hid/hid-glorious.c       |   2 +
 drivers/hid/hid_glorious_rust.rs |  62 +++++
 include/linux/hid.h              |   2 +-
 rust/bindings/bindings_helper.h  |   1 +
 rust/kernel/hid.rs               | 421 +++++++++++++++++++++++++++++++
 rust/kernel/lib.rs               |   2 +
 9 files changed, 520 insertions(+), 1 deletion(-)
 create mode 100644 drivers/hid/hid_glorious_rust.rs
 create mode 100644 rust/kernel/hid.rs


base-commit: 0303584766b7bdb6564c7e8f13e0b59b6ef44984
-- 
2.49.0



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

end of thread, other threads:[~2025-07-06  3:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-29  4:51 [PATCH v1 0/3] Initial work for Rust abstraction for HID device driver development Rahul Rameshbabu
2025-06-29  4:51 ` [PATCH v1 1/3] HID: core: Change hid_driver to use a const char* for name Rahul Rameshbabu
2025-06-29  4:51 ` [PATCH v1 2/3] rust: core abstractions for HID drivers Rahul Rameshbabu
2025-06-29  8:45   ` Danilo Krummrich
2025-07-03  6:37     ` Jiri Kosina
2025-07-03  8:01       ` Benjamin Tissoires
2025-07-03  8:20         ` Danilo Krummrich
2025-07-05  7:31           ` Rahul Rameshbabu
2025-07-05 10:41             ` Miguel Ojeda
2025-07-06  3:03               ` Rahul Rameshbabu
2025-07-05 10:54             ` Danilo Krummrich
2025-06-29  4:51 ` [PATCH v1 3/3] rust: hid: Glorious Gaming PC Race Model O and O- mice reference driver Rahul Rameshbabu
2025-06-29  9:22   ` Danilo Krummrich
2025-07-03 10:36   ` Peter Hutterer
2025-07-05 13:01 ` [PATCH v1 0/3] Initial work for Rust abstraction for HID device driver development Aditya Garg

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