[PATCH v7 0/2] Initial work for Rust abstraction for HID device driver development

Rahul Rameshbabu posted 2 patches 2 weeks, 3 days ago
MAINTAINERS                           |  14 +
drivers/hid/Kconfig                   |   2 +
drivers/hid/Makefile                  |   2 +
drivers/hid/hid-glorious.c            |   2 +
drivers/hid/rust/Kconfig              |  28 ++
drivers/hid/rust/Makefile             |   6 +
drivers/hid/rust/hid_glorious_rust.rs |  67 ++++
rust/bindings/bindings_helper.h       |   3 +
rust/kernel/hid.rs                    | 509 ++++++++++++++++++++++++++
rust/kernel/lib.rs                    |   2 +
10 files changed, 635 insertions(+)
create mode 100644 drivers/hid/rust/Kconfig
create mode 100644 drivers/hid/rust/Makefile
create mode 100644 drivers/hid/rust/hid_glorious_rust.rs
create mode 100644 rust/kernel/hid.rs
[PATCH v7 0/2] Initial work for Rust abstraction for HID device driver development
Posted by Rahul Rameshbabu 2 weeks, 3 days ago
Thanks Gary and others for the great review on v6. In parallel to v7, I am
working on a more complex driver for RazerBlade laptops that I am hoping will be
interesting for review.

Link: https://lore.kernel.org/rust-for-linux/20260222215611.79760-1-sergeantsagara@protonmail.com/
Link: https://youtu.be/c8JAZm-QinY
Link: https://lore.kernel.org/rust-for-linux/wjfjzjc626n55zvhksiyldobwubr2imbvfavqej333lvnka2wn@r4zfcjqtanvu/
Link: https://lore.kernel.org/rust-for-linux/175810473311.3076338.14309101339951114135.b4-ty@kernel.org/

Rahul Rameshbabu (2):
  rust: core abstractions for HID drivers
  rust: hid: Glorious PC Gaming Race Model O and O- mice reference
    driver

 MAINTAINERS                           |  14 +
 drivers/hid/Kconfig                   |   2 +
 drivers/hid/Makefile                  |   2 +
 drivers/hid/hid-glorious.c            |   2 +
 drivers/hid/rust/Kconfig              |  28 ++
 drivers/hid/rust/Makefile             |   6 +
 drivers/hid/rust/hid_glorious_rust.rs |  67 ++++
 rust/bindings/bindings_helper.h       |   3 +
 rust/kernel/hid.rs                    | 509 ++++++++++++++++++++++++++
 rust/kernel/lib.rs                    |   2 +
 10 files changed, 635 insertions(+)
 create mode 100644 drivers/hid/rust/Kconfig
 create mode 100644 drivers/hid/rust/Makefile
 create mode 100644 drivers/hid/rust/hid_glorious_rust.rs
 create mode 100644 rust/kernel/hid.rs


base-commit: b3d161f22ba9b2dc16bb82aa2b8515d98c99624f
-- 
2.52.0