mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Nick Dowsett" <nick42d@gmail.com>
To: "Werner Sembach" <wse@tuxedocomputers.com>,
	nick42d@gmail.com, "Hans de Goede" <hansg@kernel.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Miguel Ojeda" <ojeda@kernel.org>,
	"Boqun Feng" <boqun@kernel.org>, "Gary Guo" <gary@garyguo.net>,
	"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
	"Benno Lossin" <lossin@kernel.org>,
	"Andreas Hindborg" <a.hindborg@kernel.org>,
	"Alice Ryhl" <aliceryhl@google.com>,
	"Trevor Gross" <tmgross@umich.edu>,
	"Danilo Krummrich" <dakr@kernel.org>,
	"Daniel Almeida" <daniel.almeida@collabora.com>,
	"Tamir Duberstein" <tamird@kernel.org>,
	"Alexandre Courbot" <acourbot@nvidia.com>,
	"Onur Özkan" <work@onurozkan.dev>
Cc: "Armin Wolf" <W_Armin@gmx.de>, <linux-kernel@vger.kernel.org>,
	<platform-driver-x86@vger.kernel.org>,
	<rust-for-linux@vger.kernel.org>
Subject: Re: [PATCH 1/4] platform/x86: clevo-laptop: add minimal WMI driver skeleton and Kbuild plumbing
Date: Tue, 24 Nov 2026 16:50:16 +0800	[thread overview]
Message-ID: <DN3B92I0MGTB.BJYABJ1HG9XS@gmail.com> (raw)
In-Reply-To: <b5f96ec9-ee4c-44c8-8451-9f40bed43290@tuxedocomputers.com>

On Mon Nov 23, 2026 at 10:12 PM AWST, Werner Sembach wrote:
>> diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
>> index 9ce384e0475e..18aa4550c9f4 100644
>> --- a/drivers/platform/x86/Kconfig
>> +++ b/drivers/platform/x86/Kconfig
>> @@ -1059,6 +1059,23 @@ config OXP_EC
>>  
>>   source "drivers/platform/x86/tuxedo/Kconfig"
>>  
>> +config CLEVO_LAPTOP
>> +   tristate "Clevo Laptop Platform Driver"
>> +   depends on RUST
>> +   depends on ACPI_WMI=y
>> +   depends on DMI
>> +   depends on LEDS_CLASS
>> +   help
>> +     This driver provides platform support for Clevo barebones and
>> +     rebranded laptops (Tuxedo, Metabox, Sager, XMG, etc.).
>> +     Currently only Clevo NLx0AU boards (e.g. Metabox Edge NL57AU)
>> +     with a 5-step white keyboard backlight are supported over WMI.
>> +     It is intended to be extended with additional Clevo models and
>> +     EC features over time.
>> +
>> +     To compile this driver as a module, choose M here: the module
>> +     will be called clevo-laptop.
>> +
> 
> TUXEDO is officially all caps.
> 
> Technically all clevo barebones are rebranded and it is sometimes more then just
> rebranding.
> 
> Maybe just drop everything behind the "and".

No concerns from my side, happy to amend this in v2. Please have a think
also about how you would like code license attributed to TUXEDO.

>> +impl kernel::InPlaceModule for ClevoLaptopModule {
>> +    fn init(module: &'static ThisModule) -> impl PinInit<Self, Error> {
>> +        pin_init::pin_init_scope(move || {
>> +            if dmi::get_system_info(dmi::Field::BoardName)
>> +                .is_none_or(|board| !SUPPORTED_BOARDS.contains(&board))
> 
> We most likely need more complex matching here in the future.
> 
> Is dmi_system_id table matching available in rust for the linux kernel?

Not currently, but I believe this would be a relatively straightforward
binding to write if needed, or it may even be idiomatic to write the
complex matching directly in this driver since Rust makes iteration
and string matching simpler. I'd consider this out-of-scope for the MVP
unless you have some other tested boards with the same requirements as
the NLx0AU.

Cheers Nick

  reply	other threads:[~2026-11-24  8:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22  4:35 [PATCH 0/4] platform/x86: clevo-laptop: add initial Rust driver for keyboard backlight Nick Dowsett via B4 Relay
2026-11-22  4:35 ` [PATCH 1/4] platform/x86: clevo-laptop: add minimal WMI driver skeleton and Kbuild plumbing Nick Dowsett via B4 Relay
2026-11-23 14:12   ` Werner Sembach
2026-11-24  8:50     ` Nick Dowsett [this message]
2026-11-22  4:35 ` [PATCH 2/4] platform/x86: clevo-laptop: add EC WMI query interface and BIOS feature check Nick Dowsett via B4 Relay
2026-11-22  4:35 ` [PATCH 3/4] platform/x86: clevo-laptop: probe keyboard backlight type and detect 5-step white backlight Nick Dowsett via B4 Relay
2026-11-22  4:35 ` [PATCH 4/4] platform/x86: clevo-laptop: register 5-step white keyboard backlight LED device Nick Dowsett via B4 Relay
2026-11-23 13:58 ` [PATCH 0/4] platform/x86: clevo-laptop: add initial Rust driver for keyboard backlight Werner Sembach
2026-11-24  0:30   ` Nick Dowsett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DN3B92I0MGTB.BJYABJ1HG9XS@gmail.com \
    --to=nick42d@gmail.com \
    --cc=W_Armin@gmx.de \
    --cc=a.hindborg@kernel.org \
    --cc=acourbot@nvidia.com \
    --cc=aliceryhl@google.com \
    --cc=bjorn3_gh@protonmail.com \
    --cc=boqun@kernel.org \
    --cc=dakr@kernel.org \
    --cc=daniel.almeida@collabora.com \
    --cc=gary@garyguo.net \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lossin@kernel.org \
    --cc=ojeda@kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=tamird@kernel.org \
    --cc=tmgross@umich.edu \
    --cc=work@onurozkan.dev \
    --cc=wse@tuxedocomputers.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®