Searched hist:"88 fc6f73fddf64eb507b04f7b2bd01d7291db514" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/thermal/samsung/ |
H A D | exynos_tmu.c | diff 88fc6f73fddf64eb507b04f7b2bd01d7291db514 Mon Apr 16 12:11:52 CEST 2018 Marek Szyprowski <m.szyprowski@samsung.com> 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: 9e4249b40340 ("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>
|