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

From: Pali Rohár

Date: Mon Nov 23 2026 - 14:39:40 EST


On Monday 23 November 2026 19:11:00 Brian Mak wrote:
> 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,

That makes sense. i8042 is x86 specific.

> 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.

Well, here the main point is: who (from HW point of view) will report
the rfkill event? It cannot be i8042 because this controller is not
present on arm64. My guess is that dell-rbtn interface is also not
present as I was told that Dell abandoned this interface even on x86.

So for arm64 platform there has to be some other source of rfkill
events. Or rfkill is not provided at all.

I do not know... because I do not have this hardware. So this question
is for somebody who is writing drivers for this platform...

In any case, it does not make any sense to provide "fake" or "dummy"
device by linux just to make driver compilable.

> 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.

I think that this is correct way. The i8042 touchpad led should not be
enabled when the i8042 HW is not present at all. And that touchpad led
is only for few models based on whitelist.

> 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

My personal opinion is to make i8042 dependency only on x86. And do not
even try to enable i8042 on non-x86 platforms. All dell drivers were in
x86 subdirectory which cause that explicit x86 was not written in
Kconfig (as it was not needed).

Now when you are moving dell drivers out of the x86 subdir, maybe it
could make sense to check if there are some other config options which
have also hidden dependency on x86.

Anyway, I highly doubt that any new platform / device (which is designed
from scratch; not rebranded or evoluted) would use i8042 for any such
API. Nowadays all those functionalities are based on ACPI or WMI APIs.