]> git.baikalelectronics.ru Git - uboot.git/commit
thermal: imx_tmu: Fix for temperature out of range
authorPeng Fan <peng.fan@nxp.com>
Sun, 3 May 2020 14:19:49 +0000 (22:19 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
commit80ff0c20a3773ec6b95e7fcb88dd1007e58f0cae
tree85016cfc8189ebfcbc69dcfa39d749fc56253276
parentb1f8c175830e6d19b2dcbacbfddcaecb89a84a8b
thermal: imx_tmu: Fix for temperature out of range

When the temperature is out of sensor's range, the Valid bit won't be
set in TRITSR register. So the polling loop won't go out.

Change the codes to retry 10 times with 100ms interval for the Valid bit.
If the timeout, we give a warning for the invalid data.

Modifed from Ye's NXP patch

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/thermal/imx_tmu.c