From: sbabic at denx.de Date: Mon, 11 May 2020 12:16:24 +0200 (CEST) Subject: [PATCH 05/13] thermal: imx_tmu: Fix for temperature out of range In-Reply-To: <20200503141957.14635-6-peng.fan@nxp.com> Message-ID: <20200511101624.1D12B814E1@phobos.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 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: sbabic at denx.de =====================================================================