From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-05.mail-europe.com (mail-05.mail-europe.com [85.9.206.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 934988460; Sat, 13 Sep 2025 16:13:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.9.206.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757779986; cv=none; b=UHlEfnxCypl0j4scdrg4nBLZU5QNwVPfTni4Jl6oDQezpxtjslbpvS/Gu8hPar7m1DV50U9GGZddukLjVlADhVpczNKGkXjf5+UkUg1PEJNlaMKm/HYQVQAhpjaLt+xTNWlp+hhMANPd4sqs4mncchmQAyXI44EMxBUJ8uQQu5o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757779986; c=relaxed/simple; bh=I8jMpUr68XX+6gm0f6J6zT3Hf0r17Zmm25fJRdup2qY=; h=Date:To:From:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=dd7ghbRUyR7/WZocclnIM1/WXbIH/V3labXlLrf9V/gg5xQoFVRbhjE2LbFtYquwvBHI2k58yutkLxLgwvhhYVEZl+Hx6jqhOL0X2T5Mq9EiBThFzaPzzrRrnlfj0+SuleMcu1DKQb9gZnsJ5hXgLQObjuq9Npz+GmFkzlZTu9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=fHEkrPZC; arc=none smtp.client-ip=85.9.206.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="fHEkrPZC" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1757779968; x=1758039168; bh=HTRRFLQA4W58CnoPCKMcmuL1LZdQbPIxjemOCUYV6oY=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=fHEkrPZCr8rk5BZr37ke5tCIWoZSTud/Yx45rPa5lBhHgpD94ZemdyGxgSN8On7bI wA2Fu8tSvr5E5ijIlcg8uQ8214eTmG6yyx2/AWEAjt5BLMQ1TFv3LGe3mNCu5HNk0n 48/0yjBveh/hGWSnGFgU2gC+NfgMtfvRBt5/qINb2CyUGuoQUMFzW3yQDju1QBa5FO eJVRxhtiaVBV7zZtTTeCvpaS1jtu7n51tBrZkA9O6HGIydc4JN10xtV0X1Zs+9jP+l HktgD3vHTVdEkK9FG5zbpdUzXrEJPnPnDlQlXgkbMVkqe5pza7JrpoUjnuJTsK2b4y PZncIyAk2jd+g== Date: Sat, 13 Sep 2025 16:12:43 +0000 To: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org From: Rahul Rameshbabu Cc: Jiri Kosina , a.hindborg@kernel.org, alex.gaynor@gmail.com, aliceryhl@google.com, benno.lossin@proton.me, Benjamin Tissoires , bjorn3_gh@protonmail.com, boqun.feng@gmail.com, dakr@kernel.org, db48x@db48x.net, gary@garyguo.net, ojeda@kernel.org, tmgross@umich.edu, peter.hutterer@who-t.net, Rahul Rameshbabu Subject: [PATCH v3 RESEND RESEND 0/3] Initial work for Rust abstraction for HID device driver development Message-ID: <20250913161222.3889-1-sergeantsagara@protonmail.com> Feedback-ID: 26003777:user:proton X-Pm-Message-ID: 9458c0e7b09b92054a04ca476221929edf7ac6b6 Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello again, I am doing another resend. Let me know if it makes sense to start sending o= ut work I have on top of these changes. I wanted to wait till these changes go= t merged first but maybe that is not the right strategy? https://lore.kernel.org/rust-for-linux/20250721020211.196394-2-sergeantsaga= ra@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-sergeant= sagara@protonmail.com/ Link: https://lore.kernel.org/rust-for-linux/20250721020211.196394-2-sergea= ntsagara@protonmail.com/ Link: https://lore.kernel.org/rust-for-linux/20250713211012.101476-4-sergea= ntsagara@protonmail.com/ Link: https://lore.kernel.org/rust-for-linux/20250629045031.92358-2-sergean= tsagara@protonmail.com/ Link: https://lore.kernel.org/rust-for-linux/20250313160220.6410-2-sergeant= sagara@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 --=20 2.47.2