mirror-linux/drivers/platform
Armin Wolf 4b11f2336e
platform/x86: acer-wmi: Fix missing capability check
During the rework of the fan behavior control code in commit
d8e8362b09 ("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: d8e8362b09 ("platform/x86: acer-wmi: Fix setting of fan behavior")
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://patch.msgid.link/20260108164716.14376-2-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2026-01-20 17:10:56 +02:00
..
arm64 Merge branch 'fixes' of into for-next 2025-12-01 11:53:59 +02:00
chrome platform/chrome: sensorhub: Support devices without FIFO_INT_ENABLE 2025-11-14 02:57:32 +00:00
cznic treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
goldfish Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
loongarch platform/loongarch: laptop: Unregister generic_sub_drivers on exit 2025-06-07 11:37:15 +08:00
mellanox platform/mellanox: Fix SN5640/SN5610 LED platform data 2026-01-15 15:54:52 +02:00
mips
olpc platform-drivers-x86 for v6.12-1 2024-09-19 09:16:04 +02:00
raspberrypi platform/raspberrypi: Destage VCHIQ MMAL driver 2025-11-09 11:24:20 +09:00
surface platform-drivers-x86 for v6.19-1 2025-12-10 06:38:17 +09:00
wmi platform/x86: wmi: Move WMI core code into a separate directory 2025-11-18 11:18:11 +02:00
x86 platform/x86: acer-wmi: Fix missing capability check 2026-01-20 17:10:56 +02:00
Kconfig platform-drivers-x86 for v6.19-1 2025-12-10 06:38:17 +09:00
Makefile platform-drivers-x86 for v6.19-1 2025-12-10 06:38:17 +09:00