]> git.karo-electronics.de Git - linux-beck.git/commit
thermal: samsung: Only update available threshold limits
authorTushar Behera <tushar.behera@linaro.org>
Mon, 14 Apr 2014 05:38:15 +0000 (11:08 +0530)
committerZhang Rui <rui.zhang@intel.com>
Thu, 15 May 2014 08:44:16 +0000 (16:44 +0800)
commitc65d34735a2a31d3b015804706037f8cb0726950
treee788ac235c084abca31e9b3e4be5d640c1124b7e
parentced2284339580b50b997807d02ccee19692b72b3
thermal: samsung: Only update available threshold limits

Currently the threshold limits are updated in 2 stages, once for all
software trigger levels and again for hardware trip point.

While updating the software trigger levels, it overwrites the threshold
limit for hardware trip point thereby forcing the Exynos core to issue
an emergency shutdown.

Updating only the required fields in threshold register fixes this issue.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Acked-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/samsung/exynos_tmu.c