]> git.dujemihanovic.xyz Git - u-boot.git/commit
thermal: imx_scu_thermal: prevent boot hang with zero pdata
authorAnatolij Gustschin <agust@denx.de>
Wed, 20 May 2020 08:21:53 +0000 (10:21 +0200)
committerAnatolij Gustschin <agust@denx.de>
Fri, 22 May 2020 11:29:25 +0000 (13:29 +0200)
commit4e7413a998ba5666aa4ee0b4f49789f52b1281b1
treeeabaca7767d2e6dfc0c36d43f8eb92852b01dd29
parent74e8fb03bdafd096bcfaa36268376874dfb5c7d4
thermal: imx_scu_thermal: prevent boot hang with zero pdata

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 <agust@denx.de>
drivers/thermal/imx_scu_thermal.c