mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] platform/x86: acer-wmi: allow hwmon without predator_v4
@ 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 ` [PATCH 1/2] platform/x86: acer-wmi: allow hwmon without predator_v4 Ilpo Järvinen
  0 siblings, 2 replies; 3+ messages in thread
From: Mohsen Tahmasebi @ 2026-08-13 15:49 UTC (permalink / raw)
  To: Lee, Chun-Yi, Hans de Goede, Ilpo Järvinen
  Cc: platform-driver-x86, linux-kernel, Mohsen Tahmasebi

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

base-commit: 3d6d817622b0a9721e3cc404df3469171582be13
-- 
2.54.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-18 11:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-13 15:49 [PATCH 1/2] platform/x86: acer-wmi: allow hwmon without predator_v4 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 ` [PATCH 1/2] platform/x86: acer-wmi: allow hwmon without predator_v4 Ilpo Järvinen

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®