From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Mohsen Tahmasebi <moh53n@moh53n.net>
Cc: "Lee, Chun-Yi" <jlee@suse.com>, Hans de Goede <hansg@kernel.org>,
platform-driver-x86@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] platform/x86: acer-wmi: allow hwmon without predator_v4
Date: Tue, 18 Aug 2026 14:19:11 +0300 (EEST) [thread overview]
Message-ID: <894d18f6-6f17-5d3b-00d1-65f395fb23de@linux.intel.com> (raw)
In-Reply-To: <20260813154939.9850-1-moh53n@moh53n.net>
On Thu, 13 Aug 2026, Mohsen Tahmasebi wrote:
> Some Acer laptops expose the same WMI sensor interface without necessarily
> supporting other predator_v4 features.
> Currently, ACER_CAP_HWMON is enabled only through predator_v4 quirk, but
> this quirk enables both ACER_CAP_PLATFORM_PROFILE and ACER_CAP_HWMON.
>
> This commit adds a separate hwmon quirk so ACER_CAP_HWMON can be enabled
> without other predator_v4 features.
>
> Signed-off-by: Mohsen Tahmasebi <moh53n@moh53n.net>
> ---
> drivers/platform/x86/acer-wmi.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
> index e0eaaefb13d..83448561189 100644
> --- a/drivers/platform/x86/acer-wmi.c
> +++ b/drivers/platform/x86/acer-wmi.c
> @@ -403,6 +403,7 @@ struct quirk_entry {
> u8 turbo;
> u8 cpu_fans;
> u8 gpu_fans;
> + u8 hwmon;
Hi,
Thanks for the patch.
Why is this u8? This should be bool.
Some others should have been too. If you want (not mandatory), you could
add patches to your series to convert the other as well when prepare v2
of the series.
> u8 predator_v4;
> u8 pwm;
> };
> @@ -421,6 +422,9 @@ static void __init set_quirks(void)
> interface->capability |= ACER_CAP_TURBO_OC | ACER_CAP_TURBO_LED
> | ACER_CAP_TURBO_FAN;
>
> + if (quirks->hwmon)
> + interface->capability |= ACER_CAP_HWMON;
> +
> if (quirks->predator_v4)
> interface->capability |= ACER_CAP_PLATFORM_PROFILE |
> ACER_CAP_HWMON;
Please properly split .hwmon completely out of .predator_v4 so that quirk
entries that have .predator_v4 also use .hwmon.
I'm on the borderline if also .predator_v4 should be renamed to something
related to platform profile.
--
i.
prev parent reply other threads:[~2026-08-18 11:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-13 15:49 Mohsen Tahmasebi
2026-08-13 15:49 ` [PATCH 2/2] platform/x86: acer-wmi: enable hwmon on Aspire A315-58G Mohsen Tahmasebi
2026-08-18 11:19 ` Ilpo Järvinen [this message]
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=894d18f6-6f17-5d3b-00d1-65f395fb23de@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=hansg@kernel.org \
--cc=jlee@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=moh53n@moh53n.net \
--cc=platform-driver-x86@vger.kernel.org \
/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®