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: I1ab1e6b5219d8f62c5ad8586eaf614a5f3833765
Signed-off-by: zhenxin.pu <zhenxin.pu@amlogic.com>
This commit is contained in:
zhenxin.pu
2020-01-03 14:41:10 +08:00
committed by Chris KIM
parent cdc01bd31a
commit 8eef4d5c15
2 changed files with 4 additions and 0 deletions

View File

@@ -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;
}
}

View File

@@ -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