From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Fri, 22 May 2020 23:15:08 +0200 Subject: [PATCH] thermal: imx_scu_thermal: prevent boot hang with zero pdata In-Reply-To: <20200520082153.20765-1-agust@denx.de> References: <20200520082153.20765-1-agust@denx.de> Message-ID: <20200522231508.30b6d29f@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 20 May 2020 10:21:53 +0200 Anatolij Gustschin agust at denx.de wrote: > Should initialization of pdata values have failed for some reason, > we end up in endless loop when getting the CPU temperature value > and can not boot. Check alert value in pdata and only retry reading > temperature if alert value is not zero. Also shorten the temperature > info string. > > Signed-off-by: Anatolij Gustschin > --- > drivers/thermal/imx_scu_thermal.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Applied. -- Anatolij