linux/drivers/thermal/intel/int340x_thermal
Srinivas Pandruvada eb8500b874 thermal/drivers/intel: Initialize RW trip to THERMAL_TEMP_INVALID
After commit 81ad4276b5 ("Thermal: Ignore invalid trip points") all
user_space governor notifications via RW trip point is broken in intel
thermal drivers. This commits marks trip_points with value of 0 during
call to thermal_zone_device_register() as invalid. RW trip points can be
0 as user space will set the correct trip temperature later.

During driver init, x86_package_temp and all int340x drivers sets RW trip
temperature as 0. This results in all these trips marked as invalid by
the thermal core.

To fix this initialize RW trips to THERMAL_TEMP_INVALID instead of 0.

Cc: <stable@vger.kernel.org>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210430122343.1789899-1-srinivas.pandruvada@linux.intel.com
2021-05-14 09:37:27 +02:00
..
acpi_thermal_rel.c acpi: Remove header dependency 2020-03-21 16:00:21 +01:00
acpi_thermal_rel.h
int340x_thermal_zone.c thermal/drivers/intel: Initialize RW trip to THERMAL_TEMP_INVALID 2021-05-14 09:37:27 +02:00
int340x_thermal_zone.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
int3400_thermal.c thermal: int340x: Support Alder Lake 2020-12-17 15:29:30 +01:00
int3402_thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
int3403_thermal.c thermal: int340x: Support Alder Lake 2020-12-17 15:29:30 +01:00
int3406_thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
Kconfig thermal: int340x: processor_thermal: Refactor MMIO interface 2020-12-10 12:29:47 +01:00
Makefile thermal: int340x: processor_thermal: Add mailbox driver 2020-12-10 12:29:50 +01:00
processor_thermal_device.c thermal: int340x: processor_thermal: Add mailbox driver 2020-12-10 12:29:50 +01:00
processor_thermal_device.h thermal: int340x: processor_thermal: Add mailbox driver 2020-12-10 12:29:50 +01:00
processor_thermal_mbox.c thermal: int340x: processor_thermal: Correct workload type name 2020-12-10 22:48:52 +01:00
processor_thermal_rapl.c thermal: int340x: processor_thermal: Refactor MMIO interface 2020-12-10 12:29:47 +01:00
processor_thermal_rfim.c thermal: int340x: processor_thermal: Add RFIM driver 2020-12-10 12:29:49 +01:00