]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: imx: correct suspend/resume flow
authorAnson Huang <b20788@freescale.com>
Tue, 24 Dec 2013 14:43:24 +0000 (09:43 -0500)
committerZhang Rui <rui.zhang@intel.com>
Thu, 2 Jan 2014 02:00:16 +0000 (10:00 +0800)
commit565951ff2ef82b8627ecf3d721b3bdef6e71bce8
treea84be8a8f346f49f6970262179df1bf89045afc2
parent6a787bee308215d31ee8576a79ae3d932a43f9e3
thermal: imx: correct suspend/resume flow

Fixes regression introduced by:

commit 2b0ddadac44eb5b7877bb504590fb90d438f53af
Author: Philipp Zabel <p.zabel@pengutronix.de>
Date:   Thu Aug 1 18:33:12 2013 +0200

    thermal: imx: implement thermal alarm interrupt handling

The commit 2b0ddadac44 makes imx thermal sensor always powered up as alarm
function is enabled, but the suspend callback of imx thermal returns
success only if thermal sensor is powered down, so it will always returns
fail hence break system's suspend, this patch disables imx thermal sensor
before suspend and re-enable it after resume.

Signed-off-by: Anson Huang <b20788@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/imx_thermal.c