diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index c3c53350d842..93020c395357 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -529,6 +529,7 @@ static irqreturn_t tsens_irq_thread(int irq, void *data) */ break; } + s->cached_temp = INT_MIN; } TSENS_DBG_1(priv, "%s: irq[%d] exit", __func__, irq); @@ -565,7 +566,6 @@ static int tsens_set_trips(void *_sensor, int low, int high) tsens_read_irq_state(priv, hw_id, s, &d); - s->cached_temp = INT_MIN; /* Write the new thresholds and clear the status */ regmap_field_write(priv->rf[LOW_THRESH_0 + hw_id], low_val); regmap_field_write(priv->rf[UP_THRESH_0 + hw_id], high_val);