From nobody Mon Sep 28 17:49:00 2026 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 662282641C6; Wed, 19 Aug 2026 15:03:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787151783; cv=pass; b=s4tgnCzA/rZX4NwLgFGbQ8afla8ZzCFN+qZMBF/JsJmbPRGAes3seGjNKswmLdQ6Wyqrz09zhHPJsBkZcr0PL/7cvzSLEFEdY4y4wTUpQa60XqMSx2Z4ZGLNnMqwX6QtrCSMtGB3+zOVf0Q3qhu5uxEi8TmGIfV71W49bAj2KbA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787151783; c=relaxed/simple; bh=SMO2MHJbq71fyxP8ZjUE5Nl1oUxYu8pFzMmNXFs8U7c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fahs8J5D/jaKC0l6A73ueIxGArHWlG6IAAjvJoADR1G6ib7zhXYDa7OlVLsDciPCOkrBV+TLHbbemyx8BAqgFaWHEpSixs0mcHszo8y9RFov2gHVgrsEGrxVDygs+SCMJZ3HJpPRyzrnIxTXl4LF3z+X5bgHFYIRXcTO93s43oA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=moh53n.net; spf=pass smtp.mailfrom=moh53n.net; dkim=pass (1024-bit key) header.d=moh53n.net header.i=moh53n@moh53n.net header.b=N4ckAWhU; arc=pass smtp.client-ip=136.143.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=moh53n.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=moh53n.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=moh53n.net header.i=moh53n@moh53n.net header.b="N4ckAWhU" ARC-Seal: i=1; a=rsa-sha256; t=1787151775; cv=none; d=zohomail.com; s=zohoarc; b=AwCwsVy3rVmxC3J/F/6f3guV/CsZLJsM+ARmMwMouNJ5RHNdJcazVpGRxmtK2yvHVRYs5vf8XW8uuSiocFkpeAjsLbTtGwxT+OGppZe0LMRCUWMQQ/q66DCiUON1blG20TaQR1x54uL64kfF7BuYlSo0BbilhRpPAR9yQ3LzKuc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1787151775; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=3MNqYbFJnKy4NPdfL8vs1fXxa91OFs319jHjqVyMIZo=; b=PRGGaK2Pv7ZGDqms1mq3rR54bCUPd4YTrQNfDdA6J46HTEF4rQ3/Wtbh7AhEdosNr32vMnsrvKDQFJqhNn0nmsw8yyGTMzJLWXeI0iidollETbjaxiI67UW48Hl2v+mWJN9nQUT3GGk5z3ETZmFi7dU+G4nBTxwWjETS7CxX6JI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=moh53n.net; spf=pass smtp.mailfrom=moh53n@moh53n.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1787151775; s=m; d=moh53n.net; i=moh53n@moh53n.net; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=3MNqYbFJnKy4NPdfL8vs1fXxa91OFs319jHjqVyMIZo=; b=N4ckAWhU2hT7FELq5zOGtK4T5mQ7Zhj07ShH90LVbRStoYCq2A7F99C8dIbPgTjn jFwKvQAe5d3ps4mZCkU1TehrxVABzCgKWx9rhMo3xZ1BtNs4mEefrPgNM51jTSMDAVn guFD5eYB+7UO8newTS1Q6SOjA85vtAVdmMHC4bRM= Received: by mx.zohomail.com with SMTPS id 1787151772568510.72067280081603; Wed, 19 Aug 2026 08:02:52 -0700 (PDT) From: Mohsen Tahmasebi To: "Lee, Chun-Yi" , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Mohsen Tahmasebi Subject: [PATCH v2 1/3] platform/x86: acer-wmi: use bool for boolean quirk fields Date: Wed, 19 Aug 2026 18:31:56 +0330 Message-ID: <20260819150205.19453-2-moh53n@moh53n.net> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260819150205.19453-1-moh53n@moh53n.net> References: <20260819150205.19453-1-moh53n@moh53n.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" Use bool for quirk fields that only represent boolean values. Signed-off-by: Mohsen Tahmasebi --- drivers/platform/x86/acer-wmi.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wm= i.c index e0eaaefb13d0..00c3113c4cf8 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -400,11 +400,11 @@ struct quirk_entry { u8 mailled; s8 brightness; u8 bluetooth; - u8 turbo; + bool turbo; u8 cpu_fans; u8 gpu_fans; - u8 predator_v4; - u8 pwm; + bool predator_v4; + bool pwm; }; =20 static struct quirk_entry *quirks; @@ -456,34 +456,34 @@ static struct quirk_entry quirk_acer_travelmate_2490 = =3D { }; =20 static struct quirk_entry quirk_acer_nitro_an515_58 =3D { - .predator_v4 =3D 1, - .pwm =3D 1, + .predator_v4 =3D true, + .pwm =3D true, }; =20 static struct quirk_entry quirk_acer_predator_ph315_53 =3D { - .turbo =3D 1, + .turbo =3D true, .cpu_fans =3D 1, .gpu_fans =3D 1, }; =20 static struct quirk_entry quirk_acer_predator_ph16_72 =3D { - .turbo =3D 1, + .turbo =3D true, .cpu_fans =3D 1, .gpu_fans =3D 1, - .predator_v4 =3D 1, - .pwm =3D 1, + .predator_v4 =3D true, + .pwm =3D true, }; =20 static struct quirk_entry quirk_acer_predator_pt14_51 =3D { - .turbo =3D 1, + .turbo =3D true, .cpu_fans =3D 1, .gpu_fans =3D 1, - .predator_v4 =3D 1, - .pwm =3D 1, + .predator_v4 =3D true, + .pwm =3D true, }; =20 static struct quirk_entry quirk_acer_predator_v4 =3D { - .predator_v4 =3D 1, + .predator_v4 =3D true, }; =20 /* This AMW0 laptop has no bluetooth */ --=20 2.54.0 From nobody Mon Sep 28 17:49:00 2026 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E32C63033DE; Wed, 19 Aug 2026 15:03:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787151783; cv=pass; b=I/BXXN0vjoic8FyLxMCEg5h0FQr2FcBePIsO3oL3hQGFOx+R8EVB7ytfv9Lpb2JTAM2aj1tQNIuVdtTJfe/Kvdcp3rwPEMEIP3iend6pVqzPf45FE3hEHvV06qAVVRd1tc0SCoJ/Wty8U6UQXYjcEjWCeKvq9rUFykUIOKRO5NU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787151783; c=relaxed/simple; bh=mOoQEmHhvZgyuzUtg2aJ0Zhxh1y4JpYPNwv0T6JB1DE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tjyhfU2Oa4IsCjZPsgVKdUkglmKEyfL8rLj85E6KmZ8lunWm8m5C1WxtMSAUqQq4QJlXatwUtGbOnvkOEMpESR4LkYAn0EvHXYYgnPs5wUqYmI6UUEfxp1h4caViiDAC3o9E2ye5+zA4nYOzMsrZMuTweWNZjdLAUUWGe2wnjhI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=moh53n.net; spf=pass smtp.mailfrom=moh53n.net; dkim=pass (1024-bit key) header.d=moh53n.net header.i=moh53n@moh53n.net header.b=l5X3hJxP; arc=pass smtp.client-ip=136.143.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=moh53n.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=moh53n.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=moh53n.net header.i=moh53n@moh53n.net header.b="l5X3hJxP" ARC-Seal: i=1; a=rsa-sha256; t=1787151777; cv=none; d=zohomail.com; s=zohoarc; b=Viar0xbp30CC//fkql6+M2tGf3M0fVXNPfQ1s7s60jS6vQnqHvZjNTEvcj9lGrcTNRBrkIZIlxfu5Smqf04XNkmGGewEa8i7IIJPSDnUtqLmE+QG1KF0baQ5zdNt4VhfvRnxYIXxQNsicPSfJQAOMx8BlhWpCSIScyYwk8rUId8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1787151777; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=mDm1+ymBIEM4CCnqUhu0jUEHl/Uz5bvygWVo/xPn99A=; b=ZlNXnqj3cjTVVzxB8mdTrpbJuXtEkoeatJGPPcs2eqyVvPQjR/MFeGCW+OiHubwwFDl0IpX2x4JoW7ZzF9gvRSAf0VgW0K8XoUoshg/iu0Lho11yPDdvFBGZSqOKCyNwo4Mbmfv/KtG3rxkwNv1I3iX9AN4J/LnelpsGeFGFhAI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=moh53n.net; spf=pass smtp.mailfrom=moh53n@moh53n.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1787151777; s=m; d=moh53n.net; i=moh53n@moh53n.net; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=mDm1+ymBIEM4CCnqUhu0jUEHl/Uz5bvygWVo/xPn99A=; b=l5X3hJxPcWZJKb0bywm/LeYH/uCpwxwU5wy1DWwR9FDzTAoReKYqcFM2R4TYmHH1 eaVPzfmVh8hbT4IIuDAx90jnrNyFUpGpd1iaggLX35XgMjyWFR87wFkiBiPZ8CuThlu y8A01oIq828vBcw4EtDDOPBUmqqVMm9nSLdTakLU= Received: by mx.zohomail.com with SMTPS id 1787151775869547.1175598439137; Wed, 19 Aug 2026 08:02:55 -0700 (PDT) From: Mohsen Tahmasebi To: "Lee, Chun-Yi" , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Mohsen Tahmasebi Subject: [PATCH v2 2/3] platform/x86: acer-wmi: split hwmon from platform profile quirk Date: Wed, 19 Aug 2026 18:31:57 +0330 Message-ID: <20260819150205.19453-3-moh53n@moh53n.net> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260819150205.19453-1-moh53n@moh53n.net> References: <20260819150205.19453-1-moh53n@moh53n.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" Some Acer laptops expose the same WMI sensor interface without necessarily supporting platform profile functionality. 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 splits hwmon support into its own quirk field, renames predator_v4 to platform_profile, and updates existing predator_v4 quirks to enable both capabilities. Signed-off-by: Mohsen Tahmasebi --- drivers/platform/x86/acer-wmi.c | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wm= i.c index 00c3113c4cf8..1d1c0d3bcec3 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -403,7 +403,8 @@ struct quirk_entry { bool turbo; u8 cpu_fans; u8 gpu_fans; - bool predator_v4; + bool hwmon; + bool platform_profile; bool pwm; }; =20 @@ -421,9 +422,11 @@ static void __init set_quirks(void) interface->capability |=3D ACER_CAP_TURBO_OC | ACER_CAP_TURBO_LED | ACER_CAP_TURBO_FAN; =20 - if (quirks->predator_v4) - interface->capability |=3D ACER_CAP_PLATFORM_PROFILE | - ACER_CAP_HWMON; + if (quirks->hwmon) + interface->capability |=3D ACER_CAP_HWMON; + + if (quirks->platform_profile) + interface->capability |=3D ACER_CAP_PLATFORM_PROFILE; =20 if (quirks->pwm) interface->capability |=3D ACER_CAP_PWM; @@ -456,7 +459,8 @@ static struct quirk_entry quirk_acer_travelmate_2490 = =3D { }; =20 static struct quirk_entry quirk_acer_nitro_an515_58 =3D { - .predator_v4 =3D true, + .hwmon =3D true, + .platform_profile =3D true, .pwm =3D true, }; =20 @@ -470,7 +474,8 @@ static struct quirk_entry quirk_acer_predator_ph16_72 = =3D { .turbo =3D true, .cpu_fans =3D 1, .gpu_fans =3D 1, - .predator_v4 =3D true, + .hwmon =3D true, + .platform_profile =3D true, .pwm =3D true, }; =20 @@ -478,12 +483,14 @@ static struct quirk_entry quirk_acer_predator_pt14_51= =3D { .turbo =3D true, .cpu_fans =3D 1, .gpu_fans =3D 1, - .predator_v4 =3D true, + .hwmon =3D true, + .platform_profile =3D true, .pwm =3D true, }; =20 static struct quirk_entry quirk_acer_predator_v4 =3D { - .predator_v4 =3D true, + .hwmon =3D true, + .platform_profile =3D true, }; =20 /* This AMW0 laptop has no bluetooth */ @@ -2192,7 +2199,7 @@ static const struct platform_profile_ops acer_predato= r_v4_platform_profile_ops =3D =20 static int acer_platform_profile_setup(struct platform_device *device) { - if (quirks->predator_v4) { + if (quirks->platform_profile) { platform_profile_device =3D devm_platform_profile_register( &device->dev, "acer-wmi", NULL, &acer_predator_v4_platform_profile_ops); if (IS_ERR(platform_profile_device)) @@ -2209,7 +2216,7 @@ static int acer_thermal_profile_change(void) * This mode key will either cycle through each mode or toggle the * most performant profile. */ - if (quirks->predator_v4) { + if (quirks->platform_profile) { u8 current_tp; int err, tp; =20 --=20 2.54.0 From nobody Mon Sep 28 17:49:00 2026 Received: from sender6-op-o15.zoho.com (sender6-op-o15.zoho.com [165.173.180.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2837F2E2286; Wed, 19 Aug 2026 15:03:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=165.173.180.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787151788; cv=pass; b=irfYG22kPN/dqvMdCnVgxu1gfvr1+8b1ETpQFAkoVQOyR0Pf5YRT3ORpMDP9G30M741fLpZqpF4YFhfr85PCRRRVNYJIFDZ3eRv75hMwnHx2/XxT/aRFHj7LWfuSmU99rZDUF9uZw9sPp7X6/2UUS+8SzRQvQyl6Yd4CjUGy5Qo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787151788; c=relaxed/simple; bh=1zdlcDSdVfkExXAIBQVPG5DSLOfh0fmqIta9Y3+UyxE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Tm7WHElH5xlKXkjyJi+tLXMrDwR7HdUDjlQF7dAGiP1LJg0riY0/5ScWW42SBcypB4JkU0mQzXfKks80+/B182iIv6BO42cCJ8Y5BWJF+7JCuZC9yHCVcNIHzyhMlwKJcaaqKuB7wLBO77to2qdDi5/yUN15ElaDodvntHX0B0I= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=moh53n.net; spf=pass smtp.mailfrom=moh53n.net; dkim=pass (1024-bit key) header.d=moh53n.net header.i=moh53n@moh53n.net header.b=qx/BzFvu; arc=pass smtp.client-ip=165.173.180.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=moh53n.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=moh53n.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=moh53n.net header.i=moh53n@moh53n.net header.b="qx/BzFvu" ARC-Seal: i=1; a=rsa-sha256; t=1787151781; cv=none; d=zohomail.com; s=zohoarc; b=lI3NyIbNpgKr6kqd5esBHzu3EQCN5ah0RqCekH9DNO8+iXQJOKsm+MNNMqh1qyrw8DxhOJhjRI+q101KeFWYv4eVKjOCB39Z0YYWjwU2XtPfoqrmQ6ymSJYn9um1EpLoyFLZUZbIDg+ekqwhOV6s92LzF5jdzzYeyeShfScKq8U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1787151781; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=w1pIiMV0CDPT1wXtgm8CpGYvIn/qekcSsBDMkUN3DtY=; b=a1uCIu6+1DDZy63Iw2PPP1Kki7YQSfh5ZprOVhoPxDGe4aZN+tJJ8qsQHP/3nz6smB1oCtEgPYNIwGoQ0f2KISb7n8QNqdccJDnCuLulsvMrwbx91/VzaQv0+MPXyTQrw6XbQMk+Jo/jVd8V5LvKC7kTEBnjjLtpZkFGK5Fgx/M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=moh53n.net; spf=pass smtp.mailfrom=moh53n@moh53n.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1787151781; s=m; d=moh53n.net; i=moh53n@moh53n.net; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=w1pIiMV0CDPT1wXtgm8CpGYvIn/qekcSsBDMkUN3DtY=; b=qx/BzFvubiybJ6O2PTCjNSjZyructaSDlvxjaVdDqfVRIGwG7I1snJw/fB3lAPO0 5EI2EvfE18JmQvOT74zQm6HGn4Cnsz2a7DZyOyOA5gh403+7lkcgyDHJngnZL1x5Cdm RwWWGjVPMJhNV6JYM3Tpv7gnEwyS4Zw6komBRXrU= Received: by mx.zohomail.com with SMTPS id 1787151778736586.4064554143913; Wed, 19 Aug 2026 08:02:58 -0700 (PDT) From: Mohsen Tahmasebi To: "Lee, Chun-Yi" , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Mohsen Tahmasebi Subject: [PATCH v2 3/3] platform/x86: acer-wmi: enable hwmon on Aspire A315-58G Date: Wed, 19 Aug 2026 18:31:58 +0330 Message-ID: <20260819150205.19453-4-moh53n@moh53n.net> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260819150205.19453-1-moh53n@moh53n.net> References: <20260819150205.19453-1-moh53n@moh53n.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External 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 --- Tested on Acer Aspire A315-58G (BIOS V1.35). With this series applied and MX350 GPU in D3hot: $ cat /sys/class/dmi/id/sys_vendor Acer $ cat /sys/class/dmi/id/product_name Aspire A315-58G $ sensors ... acer-isa-0ace Adapter: ISA adapter temp1: +57.0=C2=B0C temp2: +50.0=C2=B0C temp3: +56.0=C2=B0C ... Sensor mapping: temp1: CPU temperature temp2: GPU temperature temp3: external temperature 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-wm= i.c index 1d1c0d3bcec3..8f02be054ca6 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 =3D { .brightness =3D -1, }; =20 +static struct quirk_entry quirk_acer_aspire_a315_58g =3D { + .hwmon =3D true, +}; + static struct quirk_entry quirk_acer_travelmate_2490 =3D { .mailled =3D 1, }; @@ -642,6 +646,15 @@ static const struct dmi_system_id acer_quirks[] __init= const =3D { }, .driver_data =3D &quirk_acer_travelmate_2490, }, + { + .callback =3D dmi_matched, + .ident =3D "Acer Aspire A315-58G", + .matches =3D { + DMI_MATCH(DMI_SYS_VENDOR, "Acer"), + DMI_MATCH(DMI_PRODUCT_NAME, "Aspire A315-58G"), + }, + .driver_data =3D &quirk_acer_aspire_a315_58g, + }, { .callback =3D dmi_matched, .ident =3D "Acer TravelMate 2490", --=20 2.54.0