summaryrefslogtreecommitdiff
authorzhenxin.pu <zhenxin.pu@amlogic.com>2020-01-03 06:59:19 (GMT)
committer Shen Liu <shen.liu@amlogic.com>2020-01-15 06:00:12 (GMT)
commit5fbe40c1342f7b075ccc795a264d2adc4ca9577f (patch)
tree36e16562c0857d9ebacbc185ae73261dc0f861be
parent8c2f6b42d92536b60a4e0cca71d696c2e43d15ed (diff)
downloadcommon-5fbe40c1342f7b075ccc795a264d2adc4ca9577f.zip
common-5fbe40c1342f7b075ccc795a264d2adc4ca9577f.tar.gz
common-5fbe40c1342f7b075ccc795a264d2adc4ca9577f.tar.bz2
Thermal: SM1: thermal driver print error [2/2]
PD#SWPL-18939 Problem: high temp restart fails to offline cpus Solution: make cpucore current state update at meson cdev probe Verify: S905X3_AC214 Change-Id: I124f7795045db89142b1fb4949163f5dd60416ea Signed-off-by: zhenxin.pu <zhenxin.pu@amlogic.com>
Diffstat
-rw-r--r--drivers/amlogic/thermal/meson_cooldev.c2
-rw-r--r--drivers/thermal/thermal_core.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/amlogic/thermal/meson_cooldev.c b/drivers/amlogic/thermal/meson_cooldev.c
index db2c9e4..961359a 100644
--- a/drivers/amlogic/thermal/meson_cooldev.c
+++ b/drivers/amlogic/thermal/meson_cooldev.c
@@ -152,6 +152,8 @@ static int meson_set_min_status(struct thermal_cooling_device *cdev,
for (i = 0; i < tzd->trips; i++)
thermal_set_upper(tzd,
cdev, i, min_state);
+ thermal_zone_device_update(tzd,
+ THERMAL_EVENT_UNSPECIFIED);
err = 1;
}
}
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index 508719f..d1b4067 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -484,6 +484,8 @@ static bool can_notify(struct thermal_zone_device *tz,
tz->temperature, hyst, trip_temp, tz->hot_step);
return true;
}
+ if (tz->hot_step != 0)
+ return true;
return false;
}
#endif