From 3bd07ec2893bef0220cd63589c19e5be354fe835 Mon Sep 17 00:00:00 2001 From: Mohsen Tahmasebi Date: Wed, 19 Aug 2026 18:31:58 +0330 Subject: platform/x86: acer-wmi: enable hwmon on Aspire A315-58G MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Acer Aspire A315-58G supports the Acer hwmon interface and reports CPU, GPU and external temperatures. Note that the GPU temperature reports 0 when the Nvidia MX350 GPU is in D3cold, but reports a valid value when the GPU is in D3hot/D0. This commit enables hwmon for this model. Signed-off-by: Mohsen Tahmasebi Link: https://patch.msgid.link/20260819150205.19453-4-moh53n@moh53n.net Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen --- drivers/platform/x86/acer-wmi.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index e551110dc811..d3d741aad556 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -454,6 +454,10 @@ static struct quirk_entry quirk_acer_aspire_1520 = { .brightness = -1, }; +static struct quirk_entry quirk_acer_aspire_a315_58g = { + .hwmon = true, +}; + static struct quirk_entry quirk_acer_travelmate_2490 = { .mailled = 1, }; @@ -642,6 +646,15 @@ static const struct dmi_system_id acer_quirks[] __initconst = { }, .driver_data = &quirk_acer_travelmate_2490, }, + { + .callback = dmi_matched, + .ident = "Acer Aspire A315-58G", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Acer"), + DMI_MATCH(DMI_PRODUCT_NAME, "Aspire A315-58G"), + }, + .driver_data = &quirk_acer_aspire_a315_58g, + }, { .callback = dmi_matched, .ident = "Acer TravelMate 2490", -- cgit v1.2.3