drivers: thermal: tsens: Add watchdog support
authorAmit Kucheria <amit.kucheria@linaro.org>
Thu, 12 Mar 2020 12:37:03 +0000 (18:07 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 20 Mar 2020 11:17:48 +0000 (12:17 +0100)
commitd22066c1afcda84306c96483357b8477b088ed30
tree64afaa4a5d6475efbdf00e8960c60a06c23b6aca
parent79125e03dbfc7148361787783c8a82a7ed60c718
drivers: thermal: tsens: Add watchdog support

TSENS IP v2.3 onwards adds support for a watchdog to detect if the TSENS
HW FSM is stuck. Add support to detect and restart the FSM in the
driver. The watchdog is configured by the bootloader, we just enable the
watchdog bark as a debug feature in the kernel.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/a314747664a065db592ad77da7beae68128a5b6e.1584015867.git.amit.kucheria@linaro.org
drivers/thermal/qcom/tsens-common.c
drivers/thermal/qcom/tsens-v2.c
drivers/thermal/qcom/tsens.h