]> git.baikalelectronics.ru Git - kernel.git/commit
Thermal: do not clear passive state during system sleep
authorWei Wang <wvw@google.com>
Wed, 7 Nov 2018 22:36:11 +0000 (14:36 -0800)
committerZhang Rui <rui.zhang@intel.com>
Fri, 30 Nov 2018 08:53:13 +0000 (16:53 +0800)
commit31a188d6edbe155a5b8afe549650473dbac1470b
tree09df31e251d7e74dc650fd50ee87e7999fd7f962
parentb70ca9fbcd2f5cef2e3e9fb04f9552900d820e57
Thermal: do not clear passive state during system sleep

commit 0c4aa15949ae ("Thermal: handle thermal zone device properly
during system sleep") added PM hook to call thermal zone reset during
sleep. However resetting thermal zone will also clear the passive state
and thus cancel the polling queue which leads the passive cooling device
state not being cleared properly after sleep.

thermal_pm_notify => thermal_zone_device_reset set passive to 0
thermal_zone_trip_update will skip update passive as `old_target ==
instance->target'.
monitor_thermal_zone => thermal_zone_device_set_polling will cancel
tz->poll_queue, so the cooling device state will not be changed
afterwards.

Reported-by: Kame Wang <kamewang@google.com>
Signed-off-by: Wei Wang <wvw@google.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_core.c