OpenCloudOS-Kernel/drivers/thermal/qcom
Matthias Kaehlcke 70ee251ded thermal/drivers/qcom/spmi-adc-tm5: Don't abort probing if a sensor is not used
adc_tm5_register_tzd() registers the thermal zone sensors for all
channels of the thermal monitor. If the registration of one channel
fails the function skips the processing of the remaining channels
and returns an error, which results in _probe() being aborted.

One of the reasons the registration could fail is that none of the
thermal zones is using the channel/sensor, which hardly is a critical
error (if it is an error at all). If this case is detected emit a
warning and continue with processing the remaining channels.

Fixes: ca66dca5ed ("thermal: qcom: add support for adc-tm5 PMIC thermal monitor")
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reported-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210823134726.1.I1dd23ddf77e5b3568625d80d6827653af071ce19@changeid
2021-09-09 16:33:29 +02:00
..
Kconfig thermal/drivers/qcom: Add support for LMh driver 2021-08-18 09:32:25 +02:00
Makefile thermal/drivers/qcom: Add support for LMh driver 2021-08-18 09:32:25 +02:00
lmh.c thermal/drivers/qcom: Add support for LMh driver 2021-08-18 09:32:25 +02:00
qcom-spmi-adc-tm5.c thermal/drivers/qcom/spmi-adc-tm5: Don't abort probing if a sensor is not used 2021-09-09 16:33:29 +02:00
qcom-spmi-temp-alarm.c thermal/drivers/qcom-spmi-temp-alarm: Add support for GEN2 rev 1 PMIC peripherals 2021-04-15 13:21:42 +02:00
tsens-8960.c thermal/drivers/tsens: Drop unused define for msm8960 2021-04-22 14:10:08 +02:00
tsens-v0_1.c thermal/drivers/qcom/tsens-v0_1: Add support for MDM9607 2021-04-20 08:58:42 +02:00
tsens-v1.c thermal/drivers/qcom/tsens_v1: Enable sensor 3 on MSM8976 2021-03-17 20:08:30 +01:00
tsens-v2.c drivers: thermal: tsens: Add watchdog support 2020-03-20 12:17:48 +01:00
tsens.c thermal/drivers/tsens: Add support for ipq8064-tsens 2021-04-22 14:10:17 +02:00
tsens.h thermal/drivers/tsens: Add VER_0 tsens version 2021-04-22 14:09:14 +02:00