]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: tsens: Check if the IP is correctly enabled by firmware
authorAmit Kucheria <amit.kucheria@linaro.org>
Wed, 12 Sep 2018 09:52:53 +0000 (15:22 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 23 Oct 2018 00:35:30 +0000 (17:35 -0700)
commit44d211983a41c8a9faaf096402b411ce8e73a4be
treecb1913091ca9dea12f8ef61fbb8d05f2283f5161
parentbb260710c87c03ea590bb575790f8a4beff2dadb
thermal: tsens: Check if the IP is correctly enabled by firmware

The SROT registers are initialised by the secure firmware at boot. We
don't have write access to the registers. Check if the block is enabled
before continuing.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/qcom/tsens-common.c