Skip to content
Commit b5447b98 authored by Peng Fan's avatar Peng Fan Committed by Stefano Babic
Browse files

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: default avatarPeng Fan <peng.fan@nxp.com>
parent 84897408
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment