public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
* [PATCH 5.10.y-cip] thermal/drivers/renesas/rzg3s: Fix inverted reset logic in devm cleanup
@ 2026-01-28 12:58 Ovidiu Panait
  2026-01-29  8:21 ` [cip-dev] " Claudiu Beznea
  0 siblings, 1 reply; 2+ messages in thread
From: Ovidiu Panait @ 2026-01-28 12:58 UTC (permalink / raw)
  To: cip-dev, pavel, nobuhiro.iwamatsu.x90

The devm reset callback that should undo the reset_control_deassert() done
during probe is incorrectly calling reset_control_deassert() again,
instead of reset_control_assert().

Fix this by calling reset_control_assert() and rename the callback
function accordingly.

Fixes: c3e23a40a178 ("thermal/drivers/renesas/rzg3s: Add thermal driver for the Renesas RZ/G3S SoC")
Signed-off-by: Ovidiu Panait <ovidiu.panait.rb@renesas.com>
---
 drivers/thermal/rzg3s_thermal.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/thermal/rzg3s_thermal.c b/drivers/thermal/rzg3s_thermal.c
index 65f00bc2f3d1..24418f46a09f 100644
--- a/drivers/thermal/rzg3s_thermal.c
+++ b/drivers/thermal/rzg3s_thermal.c
@@ -180,9 +180,9 @@ static int rzg3s_thermal_read_calib(struct rzg3s_thermal_priv *priv)
 	return 0;
 }
 
-static void rzg3s_thermal_reset_deassert(void *data)
+static void rzg3s_thermal_reset_assert(void *data)
 {
-	reset_control_deassert(data);
+	reset_control_assert(data);
 }
 
 static void rzg3s_thermal_rem_hwmon_sysfs(void *data)
@@ -223,7 +223,7 @@ static int rzg3s_thermal_probe(struct platform_device *pdev)
 	if (ret)
 		return ret;
 
-	ret = devm_add_action_or_reset(dev, rzg3s_thermal_reset_deassert, priv->rstc);
+	ret = devm_add_action_or_reset(dev, rzg3s_thermal_reset_assert, priv->rstc);
 	if (ret)
 		return ret;
 
-- 
2.51.0



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

end of thread, other threads:[~2026-01-29  8:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-28 12:58 [PATCH 5.10.y-cip] thermal/drivers/renesas/rzg3s: Fix inverted reset logic in devm cleanup Ovidiu Panait
2026-01-29  8:21 ` [cip-dev] " Claudiu Beznea

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