public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] thermal/drivers/rockchip: Shut up eFuse prober defer warning
@ 2026-03-17 14:31 Sebastian Reichel
  2026-03-17 15:14 ` Heiko Stuebner
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Reichel @ 2026-03-17 14:31 UTC (permalink / raw)
  To: Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
	Heiko Stuebner, Nicolas Frattaroli
  Cc: linux-pm, linux-arm-kernel, linux-rockchip, linux-kernel, kernel,
	Sebastian Reichel

Shut up the following message printed at error level on ArmSom Sige5:

rockchip-thermal 2ae70000.tsadc: failed reading trim of sensor 0: -EPROBE_DEFER

Fixes: ae332ec0009d ("thermal/drivers/rockchip: Support reading trim values from OTP")
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 drivers/thermal/rockchip_thermal.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
index c49ddf70f86e..2a40339de0d0 100644
--- a/drivers/thermal/rockchip_thermal.c
+++ b/drivers/thermal/rockchip_thermal.c
@@ -1638,8 +1638,7 @@ rockchip_thermal_register_sensor(struct platform_device *pdev,
 	if (tsadc->get_trim_code && sensor->of_node) {
 		error = rockchip_get_efuse_value(sensor->of_node, "trim", &trim);
 		if (error < 0 && error != -ENOENT) {
-			dev_err(dev, "failed reading trim of sensor %d: %pe\n",
-				id, ERR_PTR(error));
+			dev_err_probe(dev, error, "failed reading trim of sensor %d\n", id);
 			return error;
 		}
 		if (trim) {

---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260317-rockchip-thermal-trim-warning-cd0072aa2f46

Best regards,
-- 
Sebastian Reichel <sebastian.reichel@collabora.com>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] thermal/drivers/rockchip: Shut up eFuse prober defer warning
  2026-03-17 14:31 [PATCH] thermal/drivers/rockchip: Shut up eFuse prober defer warning Sebastian Reichel
@ 2026-03-17 15:14 ` Heiko Stuebner
  0 siblings, 0 replies; 2+ messages in thread
From: Heiko Stuebner @ 2026-03-17 15:14 UTC (permalink / raw)
  To: Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
	Nicolas Frattaroli, Sebastian Reichel
  Cc: linux-pm, linux-arm-kernel, linux-rockchip, linux-kernel, kernel,
	Sebastian Reichel

Am Dienstag, 17. März 2026, 15:31:30 Mitteleuropäische Normalzeit schrieb Sebastian Reichel:
> Shut up the following message printed at error level on ArmSom Sige5:
> 
> rockchip-thermal 2ae70000.tsadc: failed reading trim of sensor 0: -EPROBE_DEFER
> 
> Fixes: ae332ec0009d ("thermal/drivers/rockchip: Support reading trim values from OTP")
> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

Reviewed-by: Heiko Stuebner <heiko@sntech.de>

> ---
>  drivers/thermal/rockchip_thermal.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
> index c49ddf70f86e..2a40339de0d0 100644
> --- a/drivers/thermal/rockchip_thermal.c
> +++ b/drivers/thermal/rockchip_thermal.c
> @@ -1638,8 +1638,7 @@ rockchip_thermal_register_sensor(struct platform_device *pdev,
>  	if (tsadc->get_trim_code && sensor->of_node) {
>  		error = rockchip_get_efuse_value(sensor->of_node, "trim", &trim);
>  		if (error < 0 && error != -ENOENT) {
> -			dev_err(dev, "failed reading trim of sensor %d: %pe\n",
> -				id, ERR_PTR(error));
> +			dev_err_probe(dev, error, "failed reading trim of sensor %d\n", id);
>  			return error;
>  		}
>  		if (trim) {
> 
> ---
> base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
> change-id: 20260317-rockchip-thermal-trim-warning-cd0072aa2f46
> 
> Best regards,
> 





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-17 15:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-17 14:31 [PATCH] thermal/drivers/rockchip: Shut up eFuse prober defer warning Sebastian Reichel
2026-03-17 15:14 ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox