linux/drivers/thermal/intel
Rafael J. Wysocki a85739c8c6 thermal: Get rid of CONFIG_THERMAL_WRITABLE_TRIPS
The only difference made by CONFIG_THERMAL_WRITABLE_TRIPS is whether or
not the writable trips mask passed during thermal zone registration
will take any effect, but whoever passes a non-zero writable trips mask
to thermal_zone_device_register_with_trips() can be forgiven thinking
that it will always work.

Moreover, some thermal drivers expect user space to set trip temperature
values, so they select CONFIG_THERMAL_WRITABLE_TRIPS, possibly overriding
a manual choice to unset it and going against the design purportedly
allowing system integrators to decide on the writability of trip points
for the given kernel build.  It is also set in one platform's defconfig.

Forthermore, CONFIG_THERMAL_WRITABLE_TRIPS only affects trip temperature,
because trip hysteresis is writable as long as the thermal zone provides
a callback to update it, regardless of the CONFIG_THERMAL_WRITABLE_TRIPS
value.

The above means that the symbol in question is used inconsistently and
its purpose is at least moot, so remove it and always take the writable
trip mask passed to thermal_zone_device_register_with_trips() into
account.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2024-02-23 18:24:48 +01:00
..
int340x_thermal thermal: intel: Adjust ops handling during thermal zone registration 2024-02-23 18:24:48 +01: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 thermal: intel: hfi: Add syscore callbacks for system-wide PM 2024-01-12 15:44:42 +01:00
intel_hfi.h thermal: intel: hfi: Enable notification interrupt 2022-02-03 19:50:49 +01:00
intel_pch_thermal.c thermal: intel: Adjust ops handling during thermal zone registration 2024-02-23 18:24:48 +01:00
intel_powerclamp.c thermal: intel: powerclamp: Remove dead code for target mwait value 2024-01-22 11:59:22 +01:00
intel_quark_dts_thermal.c thermal: intel: Adjust ops handling during thermal zone registration 2024-02-23 18:24:48 +01:00
intel_soc_dts_iosf.c thermal: intel: Adjust ops handling during thermal zone registration 2024-02-23 18:24:48 +01:00
intel_soc_dts_iosf.h thermal: intel: Discard trip tables after zone registration 2024-02-23 18:24:47 +01:00
intel_soc_dts_thermal.c thermal: intel: intel_soc_dts_iosf: Rework critical trip setup 2023-08-11 18:44:45 +02:00
intel_tcc_cooling.c x86/cpu: Fix Gracemont uarch 2023-08-09 21:51:06 +02:00
intel_tcc.c thermal/intel: Fix intel_tcc_get_temp() to support negative CPU temperature 2024-02-12 18:41:38 +01:00
Kconfig thermal: Get rid of CONFIG_THERMAL_WRITABLE_TRIPS 2024-02-23 18:24:48 +01:00
Makefile thermal: intel: menlow: Get rid of this driver 2023-04-27 19:24:13 +02:00
therm_throt.c thermal: intel: Avoid updating unsupported THERM_STATUS_CLEAR mask bits 2023-04-11 18:12:19 +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: Adjust ops handling during thermal zone registration 2024-02-23 18:24:48 +01:00