summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/armada_thermal.c
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>2017-03-29 20:43:50 +0200
committerEduardo Valentin <edubezval@gmail.com>2017-03-30 21:39:09 -0700
commit78aefd2d5911c4e0b5dc0b0578b3b8c7673be1d2 (patch)
tree800a2c3f9f27bd46c1d75478078b8f953cc243d8 /drivers/thermal/armada_thermal.c
parentb263b473bf62dfd4aa10fc9068b2c78b1b20f202 (diff)
downloadlinux-78aefd2d5911c4e0b5dc0b0578b3b8c7673be1d2.tar.gz
linux-78aefd2d5911c4e0b5dc0b0578b3b8c7673be1d2.tar.bz2
linux-78aefd2d5911c4e0b5dc0b0578b3b8c7673be1d2.zip
thermal: rcar_gen3_thermal: add delay in .thermal_init on r8a7796
The .thermal_init needs to be delayed a short amount of time to allow for the TEMP register to contain something useful. If it's not delayed these warnings are common during boot: thermal thermal_zone0: failed to read out thermal zone (-5) thermal thermal_zone1: failed to read out thermal zone (-5) thermal thermal_zone2: failed to read out thermal zone (-5) The warnings are triggered by the first call to .get_temp() while the TEMP register contains 0 and rcar_gen3_thermal_get_temp() returns -EIO since a TEMP value of 0 will result in a temperature reading which is out of specifications. This should have been done in the initial commit which adds the driver as the same issue was found and corrected for r8a7795. Fixes: 564e73d283af9d4c ("thermal: rcar_gen3_thermal: Add R-Car Gen3 thermal driver") Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/armada_thermal.c')
0 files changed, 0 insertions, 0 deletions