diff options
author | Wei Wang <wvw@google.com> | 2018-11-07 14:36:11 -0800 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2018-11-30 16:53:13 +0800 |
commit | 964f4843a455d2ffb199512b08be8d5f077c4cac (patch) | |
tree | 09df31e251d7e74dc650fd50ee87e7999fd7f962 /drivers/hwmon/hwmon.c | |
parent | 5be52fccaf3d218b278320b0d183aa36aab48add (diff) | |
download | blackbird-op-linux-964f4843a455d2ffb199512b08be8d5f077c4cac.tar.gz blackbird-op-linux-964f4843a455d2ffb199512b08be8d5f077c4cac.zip |
Thermal: do not clear passive state during system sleep
commit ff140fea847e ("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>
Diffstat (limited to 'drivers/hwmon/hwmon.c')
0 files changed, 0 insertions, 0 deletions