linux/drivers/platform
Krishna Chomal eeeb4c9874
platform/x86: hp-wmi: Add EC offsets to read Victus S thermal profile
The current implementation for Victus S thermal profiles only supports
setting the profile. The driver was missing the logic to read the
hardware state, meaning it would default to "Balanced" on driver load,
overriding the currently active profile. Furthermore, the driver could
not detect if the firmware reset the profile on a power source change.

Statically store the known EC offsets for reading thermal profile in the
new .ec_tp_offset field of struct thermal_profile_params. Implement
platform_profile_victus_s_get_ec() to use this offset to read the real
hardware state. Additionally, update the power source event notifier to
use the actual hardware state when re-triggering CPU power limits
actualization.

Testing on HP Omen 16-wf1xxx (board ID 8C78) confirmed that the thermal
profile is now persistent across driver loads and power source change
events.

Signed-off-by: Krishna Chomal <krishna.chomal108@gmail.com>
Link: https://patch.msgid.link/20260121182858.66363-1-krishna.chomal108@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2026-01-28 15:05:59 +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: mlx-platform: Add support DGX flavor of next-generation 800GB/s ethernet switch. 2026-01-28 14:38:21 +02:00
mips platform: mips: cpu_hwmon: Disable driver on unsupported hardware 2024-06-21 10:22:10 +02:00
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/surface: aggregator_registry: Add Surface Pro 11 (QCOM) 2026-01-10 13:17:01 +02:00
wmi platform/wmi: string-kunit: Add missing oversized string test case 2026-01-26 16:03:18 +02:00
x86 platform/x86: hp-wmi: Add EC offsets to read Victus S thermal profile 2026-01-28 15:05:59 +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