From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E4AC1A23B6 for ; Thu, 8 Jan 2026 13:36:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767879399; cv=none; b=oa4ONkviFLBGGDeHcysfJkppauSypS9oBr2Wl3iIGoqSPaH/GbXZgzwU+iLRZ4YcQu1nI/XoyGLBO73C2U5hXbkvun6mcYxMAtHS4pmdATTr/fwWPHy2gMuztgVVifOOF1leyPuOepCKRJtayQboUL+y1UKAqLXbVejlMicoMTg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767879399; c=relaxed/simple; bh=hYZzk/qulSxWaTC/5mYyqc84xO+e/vN/svymz2EFLgk=; h=Message-ID:Date:MIME-Version:To:Cc:From:Subject:Content-Type; b=qmktVYEN9lAsTmWfSmSmRAmfuVI0qXpHMToq4gFzkict6P1t+2HiYpcvlqjCdU1e7jnFLUh1UcpD/VFDs4Ekj0Zey9HMGjkm0hp4tx6o+lyffR2nKy4DZpCEWcX5C8Ltfd4vxnzFOnow95VYKtzo/pC41om/ic0/6Eca7Ab40pY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dETA1Yp2; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dETA1Yp2" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-47d493a9b96so19227515e9.1 for ; Thu, 08 Jan 2026 05:36:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767879396; x=1768484196; darn=vger.kernel.org; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=hYZzk/qulSxWaTC/5mYyqc84xO+e/vN/svymz2EFLgk=; b=dETA1Yp24tO7FZ+tQZBsTLTtlWn3aQhQyeEJXWv3yhgOYiuW7EuoWizZKB0337Feqh GvMih9FsqLhapq5ER+tqri/lmBmwGwsohkuoQZSqdCfz55elp5syHn7iuVvpgN+F6qhn PcdpWFG4S/MdjIIGaGgtJwb6lPHuImHV3QerrWixlksBUpjjghPlLSdrARELPrDgVBo6 D7R3wFi56AAv+COeGGkPfu5gtm39BLCCsvbhT4/0UT2y3d3PJ+/PmZ7SpCUaab7/EoSF Ht9JaEP8Me6Zld16GdxzPN8EjTVj9ZeIsUlrl7FBvNa+jYW2bmCg+RAq8S62/Cc0aq8m aZhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767879396; x=1768484196; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hYZzk/qulSxWaTC/5mYyqc84xO+e/vN/svymz2EFLgk=; b=OO5qbvmV+HfYNe1ZxKuRFltHg2th9NibPlupb6di2shCfAUDRXqvZgbb0G8XViM2Xx AVqFdWWWyxgBTr35Aan6SY+Kd1T9q6wTcD7r4koh20H1zWxGL1P1wy2Nw/cHOrGcq5OL 03wvgVOdIarpgFG16OO1lO+w4TN+iAfT3X7rb5LA4sO2JdF/k8JEk/QhMkdKYHlHYrVc mj/aqiEbL7I3rMJS3snnhB68m38CBqk9zLh/rGXk/9CCZt+EeGL8uEyItJo5v0VBUB21 bHLd3u9LRlSGYYObboZ/oeZLJE5u81tkVrPQjGcsNDRZOzqCi9GwYgJqsKflYV5eKdkm HHJg== X-Gm-Message-State: AOJu0YzBVkbNduud0j6NvnJoMo7yUpt9sRCohyKP+hwxua1eLjwBsj/H 6GLhtf/rXhmGCpZ46ecinLAdVfGIO8JJj3bMj7cqwAXMlcJHrCCUBKrIPwA4BA== X-Gm-Gg: AY/fxX4P3s37TON49mXFt8DmMloCtfEF2ghtQ+OjJBGQIitbcTk7vWgBZUTb6bnsyEk BcT73FpKPZcxx0TeXDYwuDbXAk+ChGcYpLpa76/Z+5XPOoNHX4o4KoCZ9EfF0p9knnQAS9/uDNi rdLYf4kmRH9VJJnedK2cTupaLfm4wHFQrMCgkK89QgA3/yMSRHcGiNn2hGhYOPDBp8GS3Q229wl 9lfHamXQfdKsLPusdTyNLBfxa7gxJ+YK6ObupiH81xHlzv4u0yEK47kmVJNHBL3EeHWbY0vDfro XO0Xdv77I2iiQ21jJEVWR8SCtkTKqhClbd+erlUmRd6q63huR2LfB43uwC5XYSCqlguPD/vaulO TBhnFNDoBdDxGvHI8QxxjrAfC3ORzejqXnQxrI092LH+qlOOCIvSD2SrZyvHJwEtUTgdtzW/DiX 3IMmtn5i0AmQUjyx9kguTjp/U= X-Google-Smtp-Source: AGHT+IFWeaxPAh92AZovsHbT7JsUtzZUFDtHgT/y7wVHzwcDS3qRKtyeBQwoY59pYZMTc3gCAicTOw== X-Received: by 2002:a05:600c:8b6d:b0:47a:814c:eea1 with SMTP id 5b1f17b1804b1-47d84b4a7b4mr75576915e9.35.1767879396259; Thu, 08 Jan 2026 05:36:36 -0800 (PST) Received: from [192.168.1.121] ([176.206.93.222]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47d870c73c0sm39516805e9.3.2026.01.08.05.36.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jan 2026 05:36:35 -0800 (PST) Message-ID: <3e36262d-8eed-443c-afdd-beef2f8be5e9@gmail.com> Date: Thu, 8 Jan 2026 14:36:35 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US, it-IT, en-US-large To: LKML Cc: Jiri Kosina , linux-input@vger.kernel.org, Denis Benato , rust-for-linux@vger.kernel.org From: Denis Benato Subject: hid-asus: integration of some rust code Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi all, These past months I have been considering moving some userspace code to the kernel. The userspace code is past of asusd and manages a feature of ASUS laptop called anime matrix: a series of leds forming a display on the back. The code in question was written by the previous maintainer of that application when the kernel was not accepting any rust code, and now that it does I think it's about time to port this well-tested feature where it belongs since it's talking directly to the hardware. For context hid-asus must remain loaded and attached to the device as this new code needs to manage just a subset of what is supported by the device, using the same hid_device*. My (main) questions are the following: - is this something that is acceptable? - is this possible, and if yes what is the best way? - is a mixed C/rust driver something that is accepted or does it break some rule? - technically is this something that today the kernel has infrastructure for? Specifically to Jiri: since you are the maintainer of hid-asus do you have any objections in doing this? Thanks to everyone who will respond and help me out. Please feel free to add more considerations and answers questions I haven't made since I'm sure there will be more anyway once I start working to this. Best regards, Denis B.