mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
drivers: thermal: Force notify thermal to re-evaluate TSENS sensors
If TSENS controller went to bad state while reading temperature of a sensor, TSENS invokes controller re-init code for all controller and then notifies the thermal framework to re-evaluate thermal for each sensor.But there is a chance that current notification API can bail out without re-evaluating the thermal zone if none of the trips are violated. Notify the thermal framework with proper notification API to force re-evaluate thermal zone and make sure that all sensors are re-enabled next active trips. Change-Id: I0686fabba1ee17de1e859e6fcd3b0af7f40c8e73 Signed-off-by: Gopala Krishna Nuthaki <gnuthaki@codeaurora.org>
This commit is contained in:
parent
03d895716d
commit
1cfdc30c3f
@ -253,7 +253,7 @@ static void tsens_therm_fwk_notify(struct work_struct *work)
|
||||
}
|
||||
TSENS_DBG(tmdev, "Calling trip_temp for sensor %d\n",
|
||||
i);
|
||||
of_thermal_handle_trip_temp(tmdev->sensor[i].tzd, temp);
|
||||
of_thermal_handle_trip(tmdev->sensor[i].tzd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user