thermal: exynos: Print a message about exceeded number of supported trip-points
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 18 Feb 2016 05:14:20 +0000 (14:14 +0900)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 8 Mar 2016 22:07:32 +0000 (14:07 -0800)
commit3a3a5f15869fa74472c377a556c3d00453403854
tree0a1b427962400e09096bcded13dfcaf4dc6dd9fb
parentfa7b29e8bfa288c8473d0c4a3ac120b3a2707e06
thermal: exynos: Print a message about exceeded number of supported trip-points

When DeviveTree contains more trip-points than SoC can configure
(usually more than four) and polling mode is not enabled, then the
remaining trip-points will be silently ignored. No interrupts will be
generated for them.

This might be quite dangerous when one provides DTB with a
non-configurable critical trip-point, like (assuming four supported
thresholds in TMU):
 - alert @50 C (type: active),
 - alert @60 C (type: active),
 - alert @70 C (type: active),
 - alert @80 C (type: active),
 - critical @120 C (type: critical) <- no interrupts generated.

This is a mistake in DTB so print a message in such case.

Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/samsung/exynos_tmu.c