aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/imx_thermal.c
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2015-10-30 16:31:58 +0800
committerZhang Rui <rui.zhang@intel.com>2015-12-29 15:59:53 +0800
commitff140fea847e1c2002a220571ab106c2456ed252 (patch)
tree958ef262af25a87df477e4c9100a826541a477e8 /drivers/thermal/imx_thermal.c
parentThermal: initialize thermal zone device correctly (diff)
downloadlinux-dev-ff140fea847e1c2002a220571ab106c2456ed252.tar.xz
linux-dev-ff140fea847e1c2002a220571ab106c2456ed252.zip
Thermal: handle thermal zone device properly during system sleep
Current thermal code does not handle system sleep well because 1. the cooling device cooling state may be changed during suspend 2. the previous temperature reading becomes invalid after resumed because it is got before system sleep 3. updating thermal zone device during suspending/resuming is wrong because some devices may have already been suspended or may have not been resumed. Thus, the proper way to do this is to cancel all thermal zone device update requirements during suspend/resume, and after all the devices have been resumed, reset and update every registered thermal zone devices. This also fixes a regression introduced by: Commit 19593a1fb1f6 ("ACPI / fan: convert to platform driver") Because, with above commit applied, all the fan devices are attached to the acpi_general_pm_domain, and they are turned on by the pm_domain automatically after resume, without the awareness of thermal core. CC: <stable@vger.kernel.org> #3.18+ Reference: https://bugzilla.kernel.org/show_bug.cgi?id=78201 Reference: https://bugzilla.kernel.org/show_bug.cgi?id=91411 Tested-by: Manuel Krause <manuelkrause@netscape.net> Tested-by: szegad <szegadlo@poczta.onet.pl> Tested-by: prash <prash.n.rao@gmail.com> Tested-by: amish <ammdispose-arch@yahoo.com> Tested-by: Matthias <morpheusxyz123@yahoo.de> Reviewed-by: Javi Merino <javi.merino@arm.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Diffstat (limited to 'drivers/thermal/imx_thermal.c')
0 files changed, 0 insertions, 0 deletions