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 19:11:00 +0000 [thread overview]
Message-ID: <af13cde2-6407-453d-81db-1778b30f4763@nvidia.com> (raw)
In-Reply-To: <20261121004828.rk2k2cq4id2ixkal@pali>
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
next prev parent reply other threads:[~2026-11-23 19:11 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 [this message]
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
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=af13cde2-6407-453d-81db-1778b30f4763@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®