]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa16cc42a69c5395ca8c7213eaaaa7529974b1a8
tree64afaa4a5d6475efbdf00e8960c60a06c23b6aca
parent9a388bc5de40bef6ba522b674ff2c984f315b4c6
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