Linux Power Management development
 help / color / mirror / Atom feed
* [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
@ 2026-07-27  3:50 jipinghuang
  2026-07-27  8:06 ` kernel test robot
  2026-07-27  8:57 ` kernel test robot
  0 siblings, 2 replies; 4+ messages in thread
From: jipinghuang @ 2026-07-27  3:50 UTC (permalink / raw)
  To: rafael, daniel.lezcano
  Cc: rui.zhang, lukasz.luba, linux-pm, linux-kernel, jipinghuang

Signed-off-by: jipinghuang <jipihuan@qti.qualcomm.com>
---
 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [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
@ 2026-07-28  2:48 jipinghuang
  0 siblings, 0 replies; 4+ messages in thread
From: jipinghuang @ 2026-07-28  2:48 UTC (permalink / raw)
  To: rafael, daniel.lezcano
  Cc: rui.zhang, lukasz.luba, linux-pm, linux-kernel, jipinghuang

Signed-off-by: jipinghuang <jipihuan@qti.qualcomm.com>
---
 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


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

end of thread, other threads:[~2026-07-28  2:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-27  3:50 [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 jipinghuang
2026-07-27  8:06 ` kernel test robot
2026-07-27  8:57 ` kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-07-28  2:48 jipinghuang

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