* [PATCH 1/2] platform/x86: acer-wmi: Extend support for Acer Nitro AN515-58
@ 2026-01-08 16:45 Armin Wolf
2026-01-08 16:45 ` [PATCH 2/2] platform/x86: acer-wmi: Fix missing capability check Armin Wolf
2026-01-19 21:21 ` [PATCH 1/2] platform/x86: acer-wmi: Extend support for Acer Nitro AN515-58 Armin Wolf
0 siblings, 2 replies; 5+ messages in thread
From: Armin Wolf @ 2026-01-08 16:45 UTC (permalink / raw)
To: pranaypawarofficial, jlee
Cc: hansg, ilpo.jarvinen, platform-driver-x86, linux-kernel
The Acer Nitro AN515-58 additionally supports fan control. Modify
the quirk list to enable said feature on this machine.
Reported-by: Pranay Pawar <pranaypawarofficial@gmail.com>
Closes: https://lore.kernel.org/platform-driver-x86/CACy5qBaFv_L5y_nGJU_3pd3CXbFZrUAE18y5Fc-hnAmrd8bSLA@mail.gmail.com/
Tested-by: Pranay Pawar <pranaypawarofficial@gmail.com>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
drivers/platform/x86/acer-wmi.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index bf97381faf58..54ca3edf532a 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -455,6 +455,11 @@ static struct quirk_entry quirk_acer_travelmate_2490 = {
.mailled = 1,
};
+static struct quirk_entry quirk_acer_nitro_an515_58 = {
+ .predator_v4 = 1,
+ .pwm = 1,
+};
+
static struct quirk_entry quirk_acer_predator_ph315_53 = {
.turbo = 1,
.cpu_fans = 1,
@@ -655,7 +660,7 @@ static const struct dmi_system_id acer_quirks[] __initconst = {
DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
DMI_MATCH(DMI_PRODUCT_NAME, "Nitro AN515-58"),
},
- .driver_data = &quirk_acer_predator_v4,
+ .driver_data = &quirk_acer_nitro_an515_58,
},
{
.callback = dmi_matched,
--
2.52.0
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 2/2] platform/x86: acer-wmi: Fix missing capability check
2026-01-08 16:45 [PATCH 1/2] platform/x86: acer-wmi: Extend support for Acer Nitro AN515-58 Armin Wolf
@ 2026-01-08 16:45 ` Armin Wolf
2026-01-19 21:21 ` [PATCH 1/2] platform/x86: acer-wmi: Extend support for Acer Nitro AN515-58 Armin Wolf
1 sibling, 0 replies; 5+ messages in thread
From: Armin Wolf @ 2026-01-08 16:45 UTC (permalink / raw)
To: pranaypawarofficial, jlee
Cc: hansg, ilpo.jarvinen, platform-driver-x86, linux-kernel
During the rework of the fan behavior control code in commit
d8e8362b09d3 ("platform/x86: acer-wmi: Fix setting of fan behavior"),
acer_toggle_turbo() was changed to use WMID_gaming_set_fan_behavior()
instead of WMID_gaming_set_u64() when switching the fans to turbo
mode. The new function however does not check if the necessary
capability (ACER_CAP_TURBO_FAN) is actually enabled on a given
machine, causing the driver to potentially access unsupported
features.
Fix this by manually checking if ACER_CAP_TURBO_FAN is enabled
on a given machine before changing the fan mode.
Cc: stable@vger.kernel.org
Fixes: d8e8362b09d3 ("platform/x86: acer-wmi: Fix setting of fan behavior")
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
drivers/platform/x86/acer-wmi.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index 54ca3edf532a..e0eaaefb13d0 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -2070,7 +2070,8 @@ static int acer_toggle_turbo(void)
WMID_gaming_set_u64(0x1, ACER_CAP_TURBO_LED);
/* Set FAN mode to auto */
- WMID_gaming_set_fan_mode(ACER_WMID_FAN_MODE_AUTO);
+ if (has_cap(ACER_CAP_TURBO_FAN))
+ WMID_gaming_set_fan_mode(ACER_WMID_FAN_MODE_AUTO);
/* Set OC to normal */
if (has_cap(ACER_CAP_TURBO_OC)) {
@@ -2084,7 +2085,8 @@ static int acer_toggle_turbo(void)
WMID_gaming_set_u64(0x10001, ACER_CAP_TURBO_LED);
/* Set FAN mode to turbo */
- WMID_gaming_set_fan_mode(ACER_WMID_FAN_MODE_TURBO);
+ if (has_cap(ACER_CAP_TURBO_FAN))
+ WMID_gaming_set_fan_mode(ACER_WMID_FAN_MODE_TURBO);
/* Set OC to turbo mode */
if (has_cap(ACER_CAP_TURBO_OC)) {
--
2.52.0
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 1/2] platform/x86: acer-wmi: Extend support for Acer Nitro AN515-58
2026-01-08 16:45 [PATCH 1/2] platform/x86: acer-wmi: Extend support for Acer Nitro AN515-58 Armin Wolf
2026-01-08 16:45 ` [PATCH 2/2] platform/x86: acer-wmi: Fix missing capability check Armin Wolf
@ 2026-01-19 21:21 ` Armin Wolf
2026-01-20 15:13 ` Ilpo Järvinen
1 sibling, 1 reply; 5+ messages in thread
From: Armin Wolf @ 2026-01-19 21:21 UTC (permalink / raw)
To: pranaypawarofficial, jlee
Cc: hansg, ilpo.jarvinen, platform-driver-x86, linux-kernel
Am 08.01.26 um 17:45 schrieb Armin Wolf:
> The Acer Nitro AN515-58 additionally supports fan control. Modify
> the quirk list to enable said feature on this machine.
Any updates on this?
Thanks,
Armin Wolf
> Reported-by: Pranay Pawar <pranaypawarofficial@gmail.com>
> Closes: https://lore.kernel.org/platform-driver-x86/CACy5qBaFv_L5y_nGJU_3pd3CXbFZrUAE18y5Fc-hnAmrd8bSLA@mail.gmail.com/
> Tested-by: Pranay Pawar <pranaypawarofficial@gmail.com>
> Signed-off-by: Armin Wolf <W_Armin@gmx.de>
> ---
> drivers/platform/x86/acer-wmi.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
> index bf97381faf58..54ca3edf532a 100644
> --- a/drivers/platform/x86/acer-wmi.c
> +++ b/drivers/platform/x86/acer-wmi.c
> @@ -455,6 +455,11 @@ static struct quirk_entry quirk_acer_travelmate_2490 = {
> .mailled = 1,
> };
>
> +static struct quirk_entry quirk_acer_nitro_an515_58 = {
> + .predator_v4 = 1,
> + .pwm = 1,
> +};
> +
> static struct quirk_entry quirk_acer_predator_ph315_53 = {
> .turbo = 1,
> .cpu_fans = 1,
> @@ -655,7 +660,7 @@ static const struct dmi_system_id acer_quirks[] __initconst = {
> DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
> DMI_MATCH(DMI_PRODUCT_NAME, "Nitro AN515-58"),
> },
> - .driver_data = &quirk_acer_predator_v4,
> + .driver_data = &quirk_acer_nitro_an515_58,
> },
> {
> .callback = dmi_matched,
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 1/2] platform/x86: acer-wmi: Extend support for Acer Nitro AN515-58
2026-01-19 21:21 ` [PATCH 1/2] platform/x86: acer-wmi: Extend support for Acer Nitro AN515-58 Armin Wolf
@ 2026-01-20 15:13 ` Ilpo Järvinen
2026-01-20 19:46 ` Armin Wolf
0 siblings, 1 reply; 5+ messages in thread
From: Ilpo Järvinen @ 2026-01-20 15:13 UTC (permalink / raw)
To: Armin Wolf
Cc: pranaypawarofficial, jlee, Hans de Goede, platform-driver-x86, LKML
On Mon, 19 Jan 2026, Armin Wolf wrote:
> Am 08.01.26 um 17:45 schrieb Armin Wolf:
>
> > The Acer Nitro AN515-58 additionally supports fan control. Modify
> > the quirk list to enable said feature on this machine.
>
> Any updates on this?
Hi,
I'm sorry, I thought I had applied this (and it was marked as accepted in
patchwork as well as a result) but apparently hadn't. Thanks for the
reminder.
Now it's in the review-ilpo-fixes branch.
--
i.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] platform/x86: acer-wmi: Extend support for Acer Nitro AN515-58
2026-01-20 15:13 ` Ilpo Järvinen
@ 2026-01-20 19:46 ` Armin Wolf
0 siblings, 0 replies; 5+ messages in thread
From: Armin Wolf @ 2026-01-20 19:46 UTC (permalink / raw)
To: Ilpo Järvinen
Cc: pranaypawarofficial, jlee, Hans de Goede, platform-driver-x86, LKML
Am 20.01.26 um 16:13 schrieb Ilpo Järvinen:
> On Mon, 19 Jan 2026, Armin Wolf wrote:
>
>> Am 08.01.26 um 17:45 schrieb Armin Wolf:
>>
>>> The Acer Nitro AN515-58 additionally supports fan control. Modify
>>> the quirk list to enable said feature on this machine.
>> Any updates on this?
> Hi,
>
> I'm sorry, I thought I had applied this (and it was marked as accepted in
> patchwork as well as a result) but apparently hadn't. Thanks for the
> reminder.
>
> Now it's in the review-ilpo-fixes branch.
>
Mistakes happen, thank you :).
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-01-20 19:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-08 16:45 [PATCH 1/2] platform/x86: acer-wmi: Extend support for Acer Nitro AN515-58 Armin Wolf
2026-01-08 16:45 ` [PATCH 2/2] platform/x86: acer-wmi: Fix missing capability check Armin Wolf
2026-01-19 21:21 ` [PATCH 1/2] platform/x86: acer-wmi: Extend support for Acer Nitro AN515-58 Armin Wolf
2026-01-20 15:13 ` Ilpo Järvinen
2026-01-20 19:46 ` Armin Wolf
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®