linux/drivers/thermal/samsung
Marek Szyprowski 88fc6f73fd thermal: exynos: Reading temperature makes sense only when TMU is turned on
When thermal sensor is not yet enabled, reading temperature might return
random value. This might even result in stopping system booting when such
temperature is higher than the critical value. Fix this by checking if TMU
has been actually enabled before reading the temperature.

This change fixes booting of Exynos4210-based board with TMU enabled (for
example Samsung Trats board), which was broken since v4.4 kernel release.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Fixes: 9e4249b403 ("thermal: exynos: Fix first temperature read after registering sensor")
CC: stable@vger.kernel.org # v4.6+
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
2018-04-27 06:17:30 -07:00
..
exynos_tmu.c thermal: exynos: Reading temperature makes sense only when TMU is turned on 2018-04-27 06:17:30 -07:00
exynos_tmu.h thermal: exynos: Remove parsing unused samsung,tmu_cal_mode property 2017-02-18 17:22:27 -08:00
Kconfig thermal: Fix build error of missing devm_ioremap_resource on UM 2016-03-08 12:22:35 -08:00
Makefile thermal: samsung: core: Exynos TMU rework to use device tree for configuration 2015-01-24 17:39:32 -04:00