]> git.dujemihanovic.xyz Git - u-boot.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)
commit402b8106eca604d3e1c150fbde88064d5044cb7c
treed9e6738dfd2e3bf13b92c6b7b8547d232c0a2008
parent282ff895c89c4c403be8a2331bcc265ff5224a83
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