mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 10:32:35 +00:00
7b145802ba
With the new OS handshake introduced by commit: "c7ff29763989 ("thermal:
int340x: Update OS policy capability handshake")", the "enabled" thermal
zone mode doesn't work in the same way as previously.
The "enabled" mode fails with -EINVAL when the new handshake is used.
To address this issue, when the new OS UUID mask is set:
- When the mode is "enabled", return 0 as the firmware already has the
latest policy mask.
- When the mode is "disabled", update the firmware with the UUID mask
of zero.
This way, the firmware can take over the thermal control.
Also reset the OS UUID mask, which allows user space to update with new
set of policies.
Fixes:
|
||
---|---|---|
.. | ||
int340x_thermal | ||
intel_bxt_pmic_thermal.c | ||
intel_hfi.c | ||
intel_hfi.h | ||
intel_menlow.c | ||
intel_pch_thermal.c | ||
intel_powerclamp.c | ||
intel_quark_dts_thermal.c | ||
intel_soc_dts_iosf.c | ||
intel_soc_dts_iosf.h | ||
intel_soc_dts_thermal.c | ||
intel_tcc_cooling.c | ||
Kconfig | ||
Makefile | ||
therm_throt.c | ||
thermal_interrupt.h | ||
x86_pkg_temp_thermal.c |