Skip to content

thermal: rcar-thermal: minor fixes

Patrick Titiano linux-pm linux-sh 1 version Applied

Status from this message: applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2thermal: rcar-thermal: fix same mask applied twicedrivers/thermal/rcar_thermal.c+1 -10 replies
2/2thermal: rcar-thermal: update thermal zone only when temperature changesdrivers/thermal/rcar_thermal.c+6 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKuninori Morimoto
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] thermal: rcar-thermal: minor fixes

Hi,
Here are 2 minor updates to the rcar-thermal driver.

First patch removes an unecessary mask applied in a if statement. Because the same mask was already applied in the preceding statement, the second one can be removed.

Second patch avoids updating the thermal zone in case an IRQ was triggered but the temperature didn't effectively change.
Note this is not a driver issue.
Below is a captured debug trace illustrating the purpose of this patch:
out of 8 thermal zone updates, only 2 are actually necessary.

[   41.120000] rcar_thermal_work(): cctemp%000
[   41.120000] rcar_thermal_work(): new_ctemp0000
[   41.120000] rcar_thermal_work(): temp is now 30000C, update thermal zone
[   58.990000] rcar_thermal_work(): cctemp0000
[   58.990000] rcar_thermal_work(): nctemp0000
[   58.990000] rcar_thermal_work(): same temp, do not update thermal zone
[   59.290000] rcar_thermal_work(): cctemp0000
[   59.290000] rcar_thermal_work(): nctemp0000
[   59.290000] rcar_thermal_work(): same temp, do not update thermal zone
[   59.590000] rcar_thermal_work(): cctemp0000
[   59.590000] rcar_thermal_work(): nctemp0000
[   59.590000] rcar_thermal_work(): same temp, do not update thermal zone
[   59.890000] rcar_thermal_work(): cctemp0000
[   59.890000] rcar_thermal_work(): nctemp0000
[   59.890000] rcar_thermal_work(): same temp, do not update thermal zone
[   60.190000] rcar_thermal_work(): cctemp0000
[   60.190000] rcar_thermal_work(): nctemp0000
[   60.190000] rcar_thermal_work(): same temp, do not update thermal zone
[   60.490000] rcar_thermal_work(): cctemp0000
[   60.490000] rcar_thermal_work(): nctemp0000
[   60.490000] rcar_thermal_work(): same temp, do not update thermal zone
[   60.790000] rcar_thermal_work(): cctemp0000
[   60.790000] rcar_thermal_work(): nctemp5000
[   60.790000] rcar_thermal_work(): temp is now 35000C, update thermal zone

I suspect this may be due to sensor sampling accuracy / fluctuation, but no formal proof.

Patrick Titiano (2):
thermal: rcar-thermal: fix same mask applied twice
thermal: rcar-thermal: update thermal zone only when temperature
changes

 drivers/thermal/rcar_thermal.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.3.2