From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Fri, 22 May 2020 23:14:14 +0200 Subject: [PATCH] cpu: imx8: use intended cpu-thermal device when getting temp value In-Reply-To: <20200519233144.2426-1-agust@denx.de> References: <20200516203420.24409-2-agust@denx.de> <20200519233144.2426-1-agust@denx.de> Message-ID: <20200522231414.5bd3c6ac@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 01:31:44 +0200 Anatolij Gustschin agust at denx.de wrote: > This fixes getting DT alert and critical pdata values in imx_scu_thermal > driver. On i.MX8QXP using not initialized alert pdata value resulted in > boot hang and endless loop outputting: > CPU Temperature (47200C) has beyond alert (0C), close to critical (0C) waiting... > > While at it, preset CPU type values once to avoid multiple calls > of device_is_compatible() for same property. > > Fixes: 3ee6ea443eb4 ("cpu: imx_cpu: Print the CPU temperature for iMX8QM A72") > Signed-off-by: Anatolij Gustschin > --- > This one supersedes the older patch here: > http://patchwork.ozlabs.org/project/uboot/patch/20200516203420.24409-2-agust at denx.de > > drivers/cpu/imx8_cpu.c | 50 +++++++++++++++++++++--------------------- > 1 file changed, 25 insertions(+), 25 deletions(-) Applied. -- Anatolij