commit | cabe2317486e7103620cdd7ec8de24863d1149a9 | [log] [tgz] |
---|---|---|
author | Peng Fan <peng.fan@nxp.com> | Sun May 03 22:19:49 2020 +0800 |
committer | Stefano Babic <sbabic@denx.de> | Sun May 10 20:55:20 2020 +0200 |
tree | 85016cfc8189ebfcbc69dcfa39d749fc56253276 | |
parent | 4f5026c621bb72a9049a3a6f5fe42db453200165 [diff] |
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>