]> git.dujemihanovic.xyz Git - linux.git/commit
ACPI: thermal: Register thermal zones without valid trip points
authorStephen Horvath <s.horvath@outlook.com.au>
Sun, 31 Mar 2024 08:37:06 +0000 (18:37 +1000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 2 Apr 2024 19:38:45 +0000 (21:38 +0200)
commit8a4ff5452dd0cdcc35940460bb777d836bece11c
tree8c0ba51c5a89bac985bcde4d949359d635d4484b
parent39cd87c4eb2b893354f3b850f916353f2658ae6f
ACPI: thermal: Register thermal zones without valid trip points

Some laptops where the thermal control is handled by the EC may
provide trip points that fail the kernels new validation, but still have
working temperature sensors. An example of this is the Framework 13 AMD.

This patch allows the thermal zone to still be registered without trip
points if the trip points fail validation, allowing the temperature
sensor to be viewed and used by the user.

Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218586
Fixes: 9c8647224e9f ("ACPI: thermal: Use library functions to obtain trip point temperature values")
Signed-off-by: Stephen Horvath <s.horvath@outlook.com.au>
[ rjw: Subject edits, remove redundant braces ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/thermal.c