[PATCH v3 RESEND RESEND 0/3] Initial work for Rust abstraction for HID device driver development

Rahul Rameshbabu posted 3 patches 2 weeks, 4 days ago
There is a newer version of this series
MAINTAINERS                      |  16 +
drivers/hid/Kconfig              |  16 +
drivers/hid/Makefile             |   1 +
drivers/hid/hid-glorious.c       |   2 +
drivers/hid/hid_glorious_rust.rs |  60 ++++
include/linux/hid.h              |   2 +-
rust/bindings/bindings_helper.h  |   3 +
rust/kernel/hid.rs               | 503 +++++++++++++++++++++++++++++++
rust/kernel/lib.rs               |   2 +
9 files changed, 604 insertions(+), 1 deletion(-)
create mode 100644 drivers/hid/hid_glorious_rust.rs
create mode 100644 rust/kernel/hid.rs
[PATCH v3 RESEND RESEND 0/3] Initial work for Rust abstraction for HID device driver development
Posted by Rahul Rameshbabu 2 weeks, 4 days ago
Hello again,

I am doing another resend. Let me know if it makes sense to start sending out
work I have on top of these changes. I wanted to wait till these changes got
merged first but maybe that is not the right strategy?

https://lore.kernel.org/rust-for-linux/20250721020211.196394-2-sergeantsagara@protonmail.com/

I incorporated Danilo's and Miguel's feedback from my v2. Additionally, I
noticed I had basic formatting issues when running scripts/checkpatch.pl.
I made sure to check the generated rustdocs and that the Rust examples
compile as part of the kunit infrastructure. I dropped the kref bindings
as they are no longer needed for this series.

Link: https://lore.kernel.org/rust-for-linux/20250808061223.3770-1-sergeantsagara@protonmail.com/
Link: https://lore.kernel.org/rust-for-linux/20250721020211.196394-2-sergeantsagara@protonmail.com/
Link: https://lore.kernel.org/rust-for-linux/20250713211012.101476-4-sergeantsagara@protonmail.com/
Link: https://lore.kernel.org/rust-for-linux/20250629045031.92358-2-sergeantsagara@protonmail.com/
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 PC Gaming Race Model O and O- mice reference
    driver

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


base-commit: 1523590203786bf4e1d29b7d08a7100c783f20ba
-- 
2.47.2
Re: (subset) [PATCH v3 RESEND RESEND 0/3] Initial work for Rust abstraction for HID device driver development
Posted by Benjamin Tissoires 2 weeks, 1 day ago
On Sat, 13 Sep 2025 16:12:43 +0000, Rahul Rameshbabu wrote:
> I am doing another resend. Let me know if it makes sense to start sending out
> work I have on top of these changes. I wanted to wait till these changes got
> merged first but maybe that is not the right strategy?
> 
> https://lore.kernel.org/rust-for-linux/20250721020211.196394-2-sergeantsagara@protonmail.com/
> 
> I incorporated Danilo's and Miguel's feedback from my v2. Additionally, I
> noticed I had basic formatting issues when running scripts/checkpatch.pl.
> I made sure to check the generated rustdocs and that the Rust examples
> compile as part of the kunit infrastructure. I dropped the kref bindings
> as they are no longer needed for this series.
> 
> [...]

Applied to hid/hid.git (for-6.18/core), thanks!

[1/3] HID: core: Change hid_driver to use a const char* for name
      https://git.kernel.org/hid/hid/c/d1dd75c6500c

Cheers,
-- 
Benjamin Tissoires <bentiss@kernel.org>
Re: (subset) [PATCH v3 RESEND RESEND 0/3] Initial work for Rust abstraction for HID device driver development
Posted by Rahul Rameshbabu 2 weeks, 1 day ago
On Wed, 17 Sep, 2025 12:25:33 +0200 "Benjamin Tissoires" <bentiss@kernel.org> wrote:
> On Sat, 13 Sep 2025 16:12:43 +0000, Rahul Rameshbabu wrote:
>> I am doing another resend. Let me know if it makes sense to start sending out
>> work I have on top of these changes. I wanted to wait till these changes got
>> merged first but maybe that is not the right strategy?
>>
>> https://lore.kernel.org/rust-for-linux/20250721020211.196394-2-sergeantsagara@protonmail.com/
>>
>> I incorporated Danilo's and Miguel's feedback from my v2. Additionally, I
>> noticed I had basic formatting issues when running scripts/checkpatch.pl.
>> I made sure to check the generated rustdocs and that the Rust examples
>> compile as part of the kunit infrastructure. I dropped the kref bindings
>> as they are no longer needed for this series.
>>
>> [...]
>
> Applied to hid/hid.git (for-6.18/core), thanks!
>
> [1/3] HID: core: Change hid_driver to use a const char* for name
>       https://git.kernel.org/hid/hid/c/d1dd75c6500c
>

Thanks!

It will be nice not having to carry around that small cleanup patch.

-- Rahul Rameshbabu