diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-01-20 16:23:41 +0100 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-01-23 21:52:12 +0100 |
| commit | 9635c586a559ba0e45b2bfbff79c937ddbaf1a62 (patch) | |
| tree | c3646e09d95b55a7f9fdd70a349e3a229ab7af81 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | 75faabf6b92ad1d14fce8d45cf40f6db53cf96fd (diff) | |
thermal: intel: x86_pkg_temp_thermal: Handle invalid temperature
After commit be0a3600aa1e ("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: be0a3600aa1e ("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
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
