[PATCH] Fixed a bug related to thermal framework boundary conditions: trip points do not need to be updated when polling is active, whereas they must be update to re-enable the irq when polling is inactive
From: jipinghuang
Date: Sun Jul 26 2026 - 23:51:09 EST
Signed-off-by: jipinghuang <jipihuan@xxxxxxxxxxxxxxxx>
---
drivers/thermal/thermal_trip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/thermal_trip.c b/drivers/thermal/thermal_trip.c
index 4b8238468b53..b6f868f7a310 100644
--- a/drivers/thermal/thermal_trip.c
+++ b/drivers/thermal/thermal_trip.c
@@ -61,7 +61,7 @@ void thermal_zone_set_trips(struct thermal_zone_device *tz, int low, int high)
return;
/* No need to change trip points */
- if (tz->prev_low_trip == low && tz->prev_high_trip == high)
+ if (tz->prev_low_trip == low && tz->prev_high_trip == high && tz->temperature >= trip_temp)
return;
tz->prev_low_trip = low;
--
2.34.1