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:
Gopala Krishna Nuthaki 2020-06-26 12:02:03 +05:30 committed by Gerrit - the friendly Code Review server
parent 03d895716d
commit 1cfdc30c3f

View File

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