From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.181 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795480228; b=jrwmTSgaxo2uQkxUH3DurVtiFSaDMr+/Ib3oYXT07gj6QlE8gfJl6ElQ/daLAVC2M3sd rtjon4JXXmpnKm8vlzg1hejnb+a49Esgt/AAoJBDJsLvgCjeoi6s77buHwNzMda4V30x0 3XW92tGib1KV/zzHF4rhk6Qx/J3wD+k0gb2QLSGyPn8E7pzBkrAAfwM2SmPJEZeWQ1d6T IZIqMjDIMYP9KDnBNbNn/1wp3Akdkaq9hdN+RDW/I72Sz7hqkdqeIL/ppi/mI54k000pZ lQr58qy5h3M7uRmn4kJMTLE6qQ5mgcCLUL0g130t7m/KDNQDbX15OWWw1JDJgWFJxiA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795480228; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Mime-Version:Content-Transfer-Encoding:Content-Type:Date:Message-Id: Subject:From:To:Cc:X-Mailer:References:In-Reply-To; bh=MzipZ8odBG4jdrhH2ZJejfMmjUk7sUkd+9+WpxV2B+M=; b=jaTuTJKUlQP26sh/WNralz1FqU0N8OCqX+ed8JH3n16vLXjRFY3ySnOV3pUMhQ9NxRGg yqk/+64ziOOIINq1xvnFcKDbGFG7aw/HIxedh3sbTjrwpgKhhz+zR3rSdD8qnUTWVmrke ZxbVxxMLD5KFe33/6uow9SLBzFCiYcjsq/uIVsa+7abvohp78uZP7lD81WuRccS1FuzmN bJRka+HDG8GHuA9lWgQmkk+mUeFeQJhdNO8e+auCf1LtXWto8FH6RAaAIm0CpOFkNX2zu 4VRVWQlARgGigc8pGqhMRujiWhQmUp4VMLbiLiig4t8USPtoEHRDIJbFxW5xUTK9DJA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=nHmCKCeW; arc=none smtp.remote-ip=74.125.82.181 Received: from mail-dy1-f181.google.com (mail-dy1-f181.google.com [74.125.82.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50012606A322 for ; Tue, 24 Nov 2026 00:30:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 50012606A322 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.a=rsa-sha256 header.s=20260707 header.b=nHmCKCeW Received: by mail-dy1-f181.google.com with SMTP id 5a478bee46e88-386ab9ab619so3500196eec.1 for ; Mon, 23 Nov 2026 16:30:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795480227; x=1796085027; darn=vger.kernel.org; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=MzipZ8odBG4jdrhH2ZJejfMmjUk7sUkd+9+WpxV2B+M=; b=nHmCKCeWqvmzQA2LdmWMoIutUf95eOE0JytLF45VaLqPVqSomrbHwXD6J/kqx0k2uO UgxUClZJQD8n6VvySSnKAgpfQd5y7WBOH9ubnOzp7ZdY4iDmCwvXf6Wj1kFOgQG2oGRn 4rga4sIj+PdC9twy0WyYf7KxaXnZZUx9Tm5bShwj2C4R4ic2lT/xb5yR62tKvCW9ylQq f7kgT/uZu1AK6Tru5Q1lLKWIrwfGKpVv5istLs+vETD3vIcpC/FB68TLNuM9STZfSUHF 7Ts5YIEHK4fwP1khdsGNR4ThInjEPOkYWOh56LJdZAXRZ2WeZ2cuo0BmH/BqL76J5Ldn kIPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795480227; x=1796085027; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=MzipZ8odBG4jdrhH2ZJejfMmjUk7sUkd+9+WpxV2B+M=; b=d8/CRmMbmlrEoDMHkSSBDa3AUlTd0YRaJnxAPlp9RsDOmFJ+dz3+4ZfeSuCCBtFFMe ngXlYwhOe040s4lCZBPnjuQW2ysCh8I2RYj83Oc6Ml5gzoz9pP7hfQxfdmQP/eiXXCUo z/eanXX1pnG3KfwUhzSVV4k8gGKvwB2ibKoIWszz2nxWnPPBJLsCxaJOmtCzWu6Oa7n6 PQs0bHRmlwllXylFq+TPgGlQ4xCcRKkt3tX4KR+FHWUgIRAz9DOryOKLeG6QvmuS0pPX xox31sFBz1V5LOs4/3n27Yhb6DPx66PLplC/EhMwfxesaRT1PCi9weFdQV8EXhw1UxuQ Peew== X-Forwarded-Encrypted: i=1; AL+hErGLKTauFG+7zLwq9TdcmVxdkYyGuMCrpOF6i6w1N7oXNKED7xEA1WJGwE1nR3fpPzrIx6v3pDk+k774Eogd7w==@vger.kernel.org X-Gm-Message-State: APuU4Z+Mz5DLm6gh+6CvZ37pwAZbPItIJsG29mm7XEikJyTtRZ9iH35v cjTmMIlkpseujxXgnZ+JwAXU/cbHaX2BaNRHP0eiQpY2vU2KArcANpAi X-Gm-Gg: AZFdTZdnDT+6U8lGgKWWvD3Z4ASauQ6xqlcuafJ0KzHgDv6W803TkzaryGrFetgI5OI Ssw2v4qTbsXuh646EYIZ8wkcLE2fWUFjXYDNKvhsF3arlKePwXzTnZygwUTh4ImUyqh3xdMNQ1i cxK+nQ/bh43B91ht5mWZPvoXp3nKhS663JzGnD7mZ7dZhQYXI5GpsaeWN4Az9VNTUlQS8m3Hjmq Iw6dvKD9jkqjaMwDYdcbdV/wLUaa8DOnP5GgR6IQwvhZcPcggHnO6xeMqmN8dG+mDzsSdtAio11 WCc+vwrWiceZ8p+VGJraMWSI+UcXuKQXyNWydUNhXbBMmD7vwe3pFBtkgO30kgDUmL3BYcq+Ojh ukuLBGM56/xCBtmIS5+t2dS51FSukxaAwqVzjRE+2aUEC6vGYLuMhhwUksgm9YJ678oj2XI+ZX5 N0uSTHxEQvY1jqgC7OsP7wS4trlnY40sZB39xfiQSQ/82d5ARx1Yykjuwxm6szyzoffUwzt2xid QVZ/X6KyelR2WNN2LjonveWTNt24qKKA5nPgeXttcPd8pT5HRDkxTS1YyRoAetcg1IKS9mmpsjN GpDjA6mXMcSGDgU6PObiictSwJ0= X-Received: by 2002:a05:7300:1486:b0:383:6eb6:5730 with SMTP id 5a478bee46e88-38570e24c0fmr16179852eec.32.1795480226923; Mon, 23 Nov 2026 16:30:26 -0800 (PST) Received: from localhost ([2001:8004:6c10:7f51:567e:69bc:1f6e:349a]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385666e99fdsm49453974eec.5.2026.11.23.16.30.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Nov 2026 16:30:26 -0800 (PST) X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 24 Nov 2026 08:30:13 +0800 Message-Id: Subject: Re: [PATCH 0/4] platform/x86: clevo-laptop: add initial Rust driver for keyboard backlight From: "Nick Dowsett" To: "Werner Sembach" , , "Hans de Goede" , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , "Miguel Ojeda" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Danilo Krummrich" , "Daniel Almeida" , "Tamir Duberstein" , "Alexandre Courbot" , =?utf-8?q?Onur_=C3=96zkan?= Cc: "Armin Wolf" , , , X-Mailer: aerc 0.22.0-0-gc2f86b7abde3 References: <20261122-clevo-laptop-v1-0-881debf4d4b0@gmail.com> In-Reply-To: Hi Werner, Thanks for the reply. I guess for some context for those that aren't aware, Werner/TUXEDO maintain an out-of-tree driver (`tuxedo-drivers`) that includes support for TUXEDO-branded Clevo drivers. This driver was influenced by their work, and I reached out to Werner briefly by email before submitting this series to the mailing list. On Mon Nov 23, 2026 at 9:58 PM AWST, Werner Sembach wrote: > Hi, > > First: I never have touched rust code, but I'm not opposed to it in princ= iple.=20 > Just to excuse a little bit of knowledge gap. > > Am 22.11.26 um 05:35 schrieb Nick Dowsett via B4 Relay: >> This series adds a new Rust platform driver MVP (`clevo-laptop`) for >> Clevo barebones and rebranded laptops (Metabox, Tuxedo, Sager, XMG, >> etc.), starting with 5-step white keyboard backlight control. > > The driver will have to interact at least with these subsystems when fini= shed=20 > (If I haven't forgotten any): > > - Platform/ACPI > - WMI > - Power Supply/Battery > - LEDs > - Input > - HWMon > > And maybe: > > - Thermal > - HID > - Component > > I don't know how much this influences the feasibility of doing it in rust= . I understand this is referring to the feasibility of rewriting the entire `tuxedo-drivers` package in Rust. Perhaps someone more experienced on the RFL front could jump in here in terms of the feasibility of writing the mentioned bindings (from what I can see, workable patches exist already for LEDs and WMI), but I'll give my perspective: - This is a beneficial effort regardless of full compatibility for now; even this MVP solves a real problem for users with this specific non-TUXEDO branded, Clevo laptop. - Some modularity between C and Rust may still be able to exist, for example, perhaps the existing HID keyboard backlight drivers may be better to remain in C. - In terms of feasibilty, whilst some waiting for bindings to reach full parity with `tuxedo-drivers` may be required, this is still more feasible for myself than writing and maintaining significant amounts of C. >> It is intended as the first in-tree user of the Rust WMI abstractions, >> and a starting point to be extended to additional Clevo models and EC >> features. >> >> What's included: >> - Minimal driver skeleton, Kconfig/Makefile plumbing, and MAINTAINERS >> entry. >> - Type-safe EC WMI query interface. >> - Driver registration and backlight type detection following >> tuxedo-drivers business rules. > > Just wanna make sure what you are referring to here exactly? Specifically, I am referring to the logic used for board capability detection; ie how to determine if a device supports fixed colour vs. RGB backlight etc. TUXEDO has already done a significant volume of work here. Any questions or concerns please shout out. Cheers Nick