Re: [PATCH 1/4] platform/x86: clevo-laptop: add minimal WMI driver skeleton and Kbuild plumbing
From: Nick Dowsett
Date: Tue Nov 24 2026 - 03:50:34 EST
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