]> git.baikalelectronics.ru Git - uboot.git/commit
thermal: imx_tmu: Fix the polling default
authorFabio Estevam <festevam@denx.de>
Wed, 23 Aug 2023 17:59:08 +0000 (14:59 -0300)
committerStefano Babic <stefano.babic@swupdate.org>
Mon, 4 Sep 2023 15:26:44 +0000 (17:26 +0200)
commit75a058927228271b50b034eedf83d1798fac869d
treed9e6738dfd2e3bf13b92c6b7b8547d232c0a2008
parent1a81bdc66a5997a1bdc6a22b807618db67375587
thermal: imx_tmu: Fix the polling default

When the 'polling-delay' property is not passed via devicetree,
pdata->polling_delay keeps at 0. This causes the imx_tmu driver to get
stuck inside the busy while() loop when the CPU temperature is above
the alert point.

Fix this problem by passing a one second polling interval, which provides
a proper delay to let the system to cool down and exit the while() loop
when the temperature is below the alert point.

Signed-off-by: Fabio Estevam <festevam@denx.de>
drivers/thermal/imx_tmu.c