On Mon, Dec 12, 2016 at 03:18:05PM +0100, Niklas Söderlund wrote: > From: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx> > > The .thermal_init needs to be delayed a short amount of time after > setting REG_GEN3_CTSR to allow for the TEMP register to contain > something useful. If it's not delayed theses 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. I think this one can be folded on patch 2/5.