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)
commitc8c3b091b65c55ed950cb1601b21eea59c3117c0
treecb1913091ca9dea12f8ef61fbb8d05f2283f5161
parentc130a7602e3bc2c6fd896c1d56478fca47a38c02
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