mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] thermal: rcar-thermal: fix runtime PM cleanup
@ 2026-08-18 13:16 Jiawen Liu
  2026-08-18 14:28 ` Geert Uytterhoeven
  2026-11-08 17:22 ` Jiawen Liu
  0 siblings, 2 replies; 3+ messages in thread
From: Jiawen Liu @ 2026-08-18 13:16 UTC (permalink / raw)
  To: Niklas Söderlund, Rafael J. Wysocki, Daniel Lezcano,
	Geert Uytterhoeven, Magnus Damm, linux-renesas-soc, linux-pm,
	linux-kernel
  Cc: Zhang Rui, Lukasz Luba

Update rcar_thermal_probe() for the confirmed driver lifecycle defect.

Keep the change limited to the concrete operation shown in the final
patch.

Signed-off-by: jiawen <1298662399@qq.com>
---
diff --git a/drivers/thermal/renesas/rcar_thermal.c b/drivers/thermal/renesas/rcar_thermal.c
--- a/drivers/thermal/renesas/rcar_thermal.c
+++ b/drivers/thermal/renesas/rcar_thermal.c
@@ -414,7 +414,12 @@
 	common->dev = dev;
 
 	pm_runtime_enable(dev);
-	pm_runtime_get_sync(dev);
+	ret = pm_runtime_get_sync(dev);
+	if (ret < 0) {
+		pm_runtime_put_noidle(dev);
+		pm_runtime_disable(dev);
+		return ret;
+	}
 
 	for (i = 0; i < chip->nirqs; i++) {
 		int irq;


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

end of thread, other threads:[~2026-11-08 17:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-18 13:16 [PATCH] thermal: rcar-thermal: fix runtime PM cleanup Jiawen Liu
2026-08-18 14:28 ` Geert Uytterhoeven
2026-11-08 17:22 ` Jiawen Liu

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

all inboxes | Powered by JetHome®