linux-stable/drivers/thermal
Ahmad Fatoum e3aa6884fa thermal/drivers/imx8mm: Suppress log message on probe deferral
[ Upstream commit 4afcb58ea4 ]

nvmem_cell_read_u32() may return -EPROBE_DEFER if NVMEM supplier has not
yet been probed. Future reprobe may succeed, so printing:

  i.mx8mm_thermal 30260000.tmu: Failed to read OCOTP nvmem cell (-517).

to the log is confusing. Fix this by using dev_err_probe. This also
elevates the message from warning to error, which is more correct: The
log message is only ever printed in probe error path and probe aborts
afterwards, so it really warrants an error-level message.

Fixes: 4032916488 ("thermal/drivers/imx: Add support for loading calibration data from OCOTP")
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230708112647.2897294-1-a.fatoum@pengutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:48:35 +02:00
..
broadcom
intel thermal/intel/intel_soc_dts_iosf: Fix reporting wrong temperatures 2023-06-15 18:07:48 +02:00
mediatek thermal/drivers/mediatek/lvts_thermal: Manage threshold between sensors 2023-09-13 09:48:35 +02:00
qcom thermal/drivers/qcom/tsens-v0_1: Add mdm9607 correction offsets 2023-07-19 16:35:16 +02:00
samsung
st
tegra
ti-soc-thermal
Kconfig
Makefile
amlogic_thermal.c
armada_thermal.c
cpufreq_cooling.c
cpuidle_cooling.c More thermal control updates for 6.4-rc1 2023-05-03 11:46:01 -07:00
da9062-thermal.c
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c
gov_bang_bang.c
gov_fair_share.c
gov_power_allocator.c
gov_step_wise.c thermal: gov_step_wise: Adjust code logic to match comment 2023-04-27 19:17:11 +02:00
gov_user_space.c
hisi_thermal.c
imx8mm_thermal.c thermal/drivers/imx8mm: Suppress log message on probe deferral 2023-09-13 09:48:35 +02:00
imx_sc_thermal.c
imx_thermal.c
k3_bandgap.c
k3_j72xx_bandgap.c
khadas_mcu_fan.c
kirkwood_thermal.c
max77620_thermal.c
qoriq_thermal.c thermal/drivers/qoriq: Only enable supported sensors 2023-07-19 16:35:16 +02:00
rcar_gen3_thermal.c
rcar_thermal.c
rockchip_thermal.c
rzg2l_thermal.c
spear_thermal.c
sprd_thermal.c
sun8i_thermal.c thermal/drivers/sun8i: Fix some error handling paths in sun8i_ths_probe() 2023-07-19 16:35:16 +02:00
thermal-generic-adc.c
thermal_acpi.c
thermal_core.c thermal: core: constify params in thermal_zone_device_register 2023-09-13 09:47:50 +02:00
thermal_core.h
thermal_helpers.c
thermal_hwmon.c
thermal_hwmon.h
thermal_mmio.c
thermal_netlink.c
thermal_netlink.h
thermal_of.c thermal/of: Fix potential uninitialized value access 2023-09-13 09:47:59 +02:00
thermal_sysfs.c
thermal_trace.h
thermal_trace_ipa.h
thermal_trip.c
uniphier_thermal.c