linux-stable/drivers/thermal
Manaf Meethalavalappu Pallikunhi dbbc8aeaf7 thermal: core: Reset previous low and high trip during thermal zone init
[ Upstream commit 99b63316c3 ]

During the suspend is in process, thermal_zone_device_update bails out
thermal zone re-evaluation for any sensor trip violation without
setting next valid trip to that sensor. It assumes during resume
it will re-evaluate same thermal zone and update trip. But when it is
in suspend temperature goes down and on resume path while updating
thermal zone if temperature is less than previously violated trip,
thermal zone set trip function evaluates the same previous high and
previous low trip as new high and low trip. Since there is no change
in high/low trip, it bails out from thermal zone set trip API without
setting any trip. It leads to a case where sensor high trip or low
trip is disabled forever even though thermal zone has a valid high
or low trip.

During thermal zone device init, reset thermal zone previous high
and low trip. It resolves above mentioned scenario.

Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Reviewed-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-08 09:01:09 +01:00
..
broadcom
intel thermal/drivers/int340x: Do not set a wrong tcc offset on resume 2021-09-30 10:09:26 +02:00
qcom
samsung thermal/drivers/exynos: Fix an error code in exynos_tmu_probe() 2021-09-26 14:07:08 +02:00
st
tegra
ti-soc-thermal
Kconfig
Makefile
armada_thermal.c
clock_cooling.c
cpu_cooling.c
da9062-thermal.c
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c
fair_share.c thermal/core/fair share: Lock the thermal zone while looping over instances 2021-05-19 10:08:32 +02:00
gov_bang_bang.c
hisi_thermal.c
imx_thermal.c
kirkwood_thermal.c
max77620_thermal.c
mtk_thermal.c
of-thermal.c thermal: thermal_of: Fix error return code of thermal_of_populate_bind_params() 2021-05-19 10:08:24 +02:00
power_allocator.c
qoriq_thermal.c
rcar_gen3_thermal.c thermal/drivers/rcar_gen3_thermal: Fix coefficient calculations 2021-07-20 16:10:53 +02:00
rcar_thermal.c
rockchip_thermal.c
spear_thermal.c
step_wise.c
tango_thermal.c
thermal-generic-adc.c
thermal_core.c thermal: core: Reset previous low and high trip during thermal zone init 2021-12-08 09:01:09 +01:00
thermal_core.h
thermal_helpers.c
thermal_hwmon.c
thermal_hwmon.h
thermal_mmio.c
thermal_sysfs.c
uniphier_thermal.c
user_space.c
zx2967_thermal.c