thermal/drivers/tsens: Add suspend to RAM support for tsens
authorPriyansh Jain <quic_priyjain@quicinc.com>
Thu, 28 Mar 2024 05:02:30 +0000 (10:32 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Apr 2024 10:40:29 +0000 (12:40 +0200)
commit34b9a92b6850279145430af181d2d2dedb98cc76
treed0ce80cf66d9a8aaf4303fd61b93c519f9c1f04f
parentff96922d33dfeb3cfe7c4fac051267155722c1ae
thermal/drivers/tsens: Add suspend to RAM support for tsens

As part of suspend to RAM, tsens hardware will be turned off.
While resume callback, re-initialize tsens hardware.

Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
Acked-by: Amit Kucheria <amitk@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20240328050230.31770-1-quic_priyjain@quicinc.com
drivers/thermal/qcom/tsens-v2.c
drivers/thermal/qcom/tsens.c
drivers/thermal/qcom/tsens.h