From: Brian Mak <bmak@nvidia.com>
To: "Pali Rohár" <pali@kernel.org>
Cc: "Hans de Goede" <hansg@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Kurt Borja" <kuurtb@gmail.com>,
"Stuart Hayes" <stuart.w.hayes@gmail.com>,
"Matthew Garrett" <mjg59@srcf.ucam.org>,
"Lyndon Sanche" <lsanche@lyndeno.ca>,
"Armin Wolf" <W_Armin@gmx.de>,
"Prasanth Ksr" <prasanth.ksr@dell.com>,
"Jonathan Corbet" <corbet@lwn.net>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Randy Dunlap" <rdunlap@infradead.org>,
"platform-driver-x86@vger.kernel.org"
<platform-driver-x86@vger.kernel.org>,
"Dell.Client.Kernel@dell.com" <Dell.Client.Kernel@dell.com>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent
Date: Mon, 23 Nov 2026 20:41:14 +0000 [thread overview]
Message-ID: <60e6e274-08e1-4cec-a98b-379dec343e8e@nvidia.com> (raw)
In-Reply-To: <20261123193923.cl2i62lgute6li3u@pali>
On 11/23/26 11:39, Pali Rohár wrote:
> 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...
I see your point. I wasn't aware of the history with how dell-rbtn was
abandoned. The dell-rbtn interface is not present on my XPS 16 Creator
Edition either. There isn't an rfkill interface on this platform, to my
knowledge. When I suggested to make rfkill setup fail without failing
probe, that was for in case the dell-rbtn interface is available on a
future platform. Since you said that it's abandoned, I would agree that
there's no sources for rfkill events on ARM64.
I can gate rfkill setup logic behind an ifdef as well then, for v2.
> In any case, it does not make any sense to provide "fake" or "dummy"
> device by linux just to make driver compilable.
I'm not sure I understand what you mean by this. Under my original
proposal of making rfkill setup fail without failing probe, no dummy or
non-functional devices would be exposed by the driver. rfkill setup
would fail gracefully, and the rfkill devices would go away with it. I
agree with you, but I'm not sure if I'm missing something here.
>> 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.
If I understand your suggestion correctly, you are asking, instead of
adding ifdefs against SERIO_I8042 and changing the dependency to:
depends on SERIO_I8042 || (SERIO_I8042 = n && !X86)
You would gate behind:
depends on SERIO_I8042 || !X86
and then add ifdefs for X86, wherever i8042 is used?
Thanks,
Brian
next prev parent reply other threads:[~2026-11-23 20:41 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 0:05 [PATCH 0/8] platform: dell: Move out of x86 and support Dell XPS 16 Creator Edition Brian Mak
2026-11-21 0:05 ` [PATCH 1/8] platform/x86: dell: Make uart-backlight x86 only Brian Mak
2026-11-21 1:36 ` Randy Dunlap
2026-11-21 1:36 ` Randy Dunlap
2026-11-21 0:05 ` [PATCH 2/8] platform: dell: Move out of x86 directory Brian Mak
2026-11-21 10:05 ` kernel test robot
2026-11-21 0:05 ` [PATCH 3/8] MAINTAINERS: Add Dell platform drivers entry Brian Mak
2026-11-21 0:05 ` [PATCH 4/8] platform: dell: Allow DELL_LAPTOP to be arch-independent Brian Mak
2026-11-21 0:48 ` Pali Rohár
2026-11-23 19:11 ` Brian Mak
2026-11-23 19:39 ` Pali Rohár
2026-11-23 20:33 ` Brian Mak
2026-11-23 20:36 ` Brian Mak
2026-11-23 20:38 ` Brian Mak
2026-11-23 20:40 ` Brian Mak
2026-11-23 20:41 ` Brian Mak [this message]
2026-11-23 20:43 ` Brian Mak
2026-11-21 1:38 ` Randy Dunlap
2026-11-23 18:10 ` Brian Mak
2026-11-21 0:05 ` [PATCH 5/8] platform: dell: smbios-wmi: Fix probe on RTX Spark Brian Mak
2026-11-21 13:44 ` Armin Wolf
2026-11-23 18:11 ` Brian Mak
2026-11-21 0:05 ` [PATCH 6/8] platform: dell: smbios: Add quirk for non-functional calling interface Brian Mak
2026-11-21 0:38 ` Pali Rohár
2026-11-21 0:45 ` Brian Mak
2026-11-21 0:51 ` Pali Rohár
2026-11-21 13:49 ` Armin Wolf
2026-11-21 0:05 ` [PATCH 7/8] platform: dell: laptop: Don't load if SMBIOS calls are non-functional Brian Mak
2026-11-21 0:05 ` [PATCH 8/8] platform: dell: pc: " Brian Mak
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=60e6e274-08e1-4cec-a98b-379dec343e8e@nvidia.com \
--to=bmak@nvidia.com \
--cc=Dell.Client.Kernel@dell.com \
--cc=W_Armin@gmx.de \
--cc=corbet@lwn.net \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=kuurtb@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lsanche@lyndeno.ca \
--cc=mjg59@srcf.ucam.org \
--cc=pali@kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=prasanth.ksr@dell.com \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
--cc=stuart.w.hayes@gmail.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®