diff options
author | Heiner Kallweit <heiner.kallweit@web.de> | 2014-11-08 20:35:54 +0100 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2014-11-09 15:42:53 -0400 |
commit | 90a21ff5824c3ae8b49c1c0498b137792b935aab (patch) | |
tree | 6ed150cd27b31178e040f3ed56fefd840da2ae1c /lib/mpi/mpi-cmp.c | |
parent | 1d6a27775762110d675f71d7192972c7357b99a7 (diff) |
imx: thermal: imx_get_temp might be called before sensor clock is prepared
imx_get_temp might be called before the sensor clock is prepared
thus resulting in a timeout of the first attempt to read temp:
thermal thermal_zone0: failed to read out thermal zone 0
Happened to me on a Utilite Standard with IMX6 Dual SoC.
Reason is that in imx_thermal_probe thermal_zone_device_register
is called before the sensor clock is prepared.
thermal_zone_device_register however calls
thermal_zone_device_update which eventually calls imx_get_temp.
Fix this by preparing the clock before calling
thermal_zone_device_register.
Signed-off-by: Heiner Kallweit <heiner.kallweit@web.de>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions