[PATCH 4/5] thermal: renesas: rzg3e: Remove unneeded low/high check in set_trips()

From: Ovidiu Panait

Date: Wed Sep 16 2026 - 08:02:02 EST


The hardware manual doesn't specify that the trip settings must be
strictly low < high, just that when the CMPCOND bit is 0, an interrupt
will be raised when the acquired temperature data is > ULIM or < LLIM.

Also, the thermal core already guarantees low < high.

Remove the redundant check.

Signed-off-by: Ovidiu Panait <ovidiu.panait.rb@xxxxxxxxxxx>
---
drivers/thermal/renesas/rzg3e_thermal.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/drivers/thermal/renesas/rzg3e_thermal.c b/drivers/thermal/renesas/rzg3e_thermal.c
index 58fdcc66456a..ffe2b8725031 100644
--- a/drivers/thermal/renesas/rzg3e_thermal.c
+++ b/drivers/thermal/renesas/rzg3e_thermal.c
@@ -275,10 +275,6 @@ static int rzg3e_thermal_set_trips(struct thermal_zone_device *tz,
u32 val;
int ret;

- /* Hardware requires low < high */
- if (low >= high)
- return -EINVAL;
-
ret = pm_runtime_resume_and_get(priv->dev);
if (ret < 0)
return ret;
--
2.34.1