Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent

From: Brian Mak

Date: Mon Nov 23 2026 - 14:11:11 EST


On 11/20/26 16:48, Pali Rohár wrote:
> On Friday 20 November 2026 16:05:50 Brian Mak wrote:
>> CONFIG_DELL_LAPTOP is currently not available on ARM64, due to a
>> dependency on CONFIG_SERIO_I8042. This dependency is actually not
>> necessary, as there is a fallback. Make it optional.
>
> i8042 is used for controlling touchpad LED and for receiving rfkill
> events when the dell-rbtn is not supported on the particular machine.
>
> Touchpad led is available on more Vostro and Inspirion machines and
> there is no fallback or detection of i8042 at all. Even there is no
> error checking.
>
> And for receiving rfkill events it is same situation.
>
> So the dell-laptop driver expects that the SERIO_I8042 is enabled and
> compiled in.
>
> If none of these functionality is available on arm64 HW, then it makes
> sense to make the SERIO_I8042 only for x86. And then in the dell-laptop
> driver marking the x86 specific dependency via ifdefs. Which allows to
> compile driver on arm64 without those specific functionalities.

SERIO_I8042 already can't be enabled on arm64, as
ARCH_MIGHT_HAVE_PC_SERIO is not set. With the current patch, the driver
builds on arm64, but as you mentioned, there's a couple gaps that need
to be addressed with rfkill and touchpad LED.

For rfkill currently, the driver fails to probe, due to a failed
i8042_install_filter call, if the device is a Latitude or a Precision
(checked by DMI) or force_rfkill is enabled, SMBIOS reports an rfkill
switch, and dell-rbtn is not supported. That doesn't apply for the XPS
16 Creator Edition, but it may for an ARM64 Latitude or Precision
product. For v2, if dell-rbtn and i8042 are both unavailable, I can make
rfkill setup fail without failing probe.

For the touchpad LED currently, the i8042_command() stub will return
-ENODEV and do nothing. This will register an LED that does nothing. For
v2, I can gate the LED registration behind a SERIO_I8042 ifdef.

For the Kconfig, since i8042 is required on some x86 Dell platforms, I
can change the Kconfig dependency to be like such, to ensure that
SERIO_I8042 is required on x86 and optional elsewhere (in case there's
another arch introduced by Dell that supports i8042 in the future):

depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)

Please let me know if these changes are good with you.

Thanks,
Brian