linux/drivers/thermal/intel
Rafael J. Wysocki 649ddf7e5a thermal: intel: x86_pkg_temp_thermal: Handle invalid temperature
[ Upstream commit 9635c586a5 ]

After commit be0a3600aa ("thermal: sysfs: Rework the handling of trip
point updates"), THERMAL_TEMP_INVALID can be passed to sys_set_trip_temp()
and it is treated as a regular temperature value there, so the sysfs
write fails even though it is expected to succeed and disable the given
trip point.

Address this by making sys_set_trip_temp() clear its temp variable when
it is equal to THERMAL_TEMP_INVALID.

Fixes: be0a3600aa ("thermal: sysfs: Rework the handling of trip point updates")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/2815400.mvXUDI8C0e@rafael.j.wysocki
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-02-26 14:59:00 -08:00
..
int340x_thermal thermal: intel: int340x: Power Slider: Validate slider_balance range 2025-09-24 21:54:55 +02:00
intel_bxt_pmic_thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
intel_hfi.c x86/msr: Rename 'wrmsrl()' to 'wrmsrq()' 2025-04-10 11:58:33 +02:00
intel_hfi.h thermal: intel: hfi: Enable notification interrupt 2022-02-03 19:50:49 +01:00
intel_pch_thermal.c thermal: intel: intel_pch: Improve cooling log 2024-06-07 21:24:37 +02:00
intel_powerclamp.c x86/msr: Rename 'rdmsrl_safe()' to 'rdmsrq_safe()' 2025-04-10 11:58:38 +02:00
intel_quark_dts_thermal.c x86/cpu: Fix FAM5_QUARK_X1000 to use X86_MATCH_VFM() 2024-10-31 12:02:21 -07:00
intel_soc_dts_iosf.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
intel_soc_dts_iosf.h thermal: intel: Set THERMAL_TRIP_FLAG_RW_TEMP directly 2024-02-27 12:04:01 +01:00
intel_soc_dts_thermal.c thermal: intel: intel_soc_dts_thermal: Switch to new Intel CPU model defines 2024-06-07 20:47:05 +02:00
intel_tcc.c x86/cpu: Fix #define name for Intel CPU model 0x5A 2025-02-04 10:05:53 -08:00
intel_tcc_cooling.c x86/msr: Add explicit includes of <asm/msr.h> 2025-05-02 10:23:47 +02:00
Kconfig thermal: intel: Fix compile issue when CONFIG_NET is not defined 2024-12-19 12:35:46 +01:00
Makefile thermal: intel: menlow: Get rid of this driver 2023-04-27 19:24:13 +02:00
therm_throt.c x86/msr: Rename 'wrmsrl_safe()' to 'wrmsrq_safe()' 2025-04-10 11:58:44 +02:00
thermal_interrupt.h thermal: intel: Protect clearing of thermal status bits 2022-11-23 20:09:06 +01:00
x86_pkg_temp_thermal.c thermal: intel: x86_pkg_temp_thermal: Handle invalid temperature 2026-02-26 14:59:00 -08:00