> 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....@nxp.com> Applied to u-boot-imx, master, thanks !
Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de =====================================================================