]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: Fix critical thermal threshold
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Tue, 12 Nov 2024 17:54:27 +0000 (18:54 +0100)
committerFabio Estevam <festevam@gmail.com>
Fri, 15 Nov 2024 17:36:47 +0000 (14:36 -0300)
Fix the critical thermal threshold for i.MX processors, this was changed
while moving the code from imx8m/imx9 directories into a shared place.

There is no need to keep the critical threshold 5 degrees less than the
SoC maximum temperature threshold, what is actually going to happen in
practice is that we are going to power-off the board when the SoC is
still within its working temperature range.

In addition to that this is a change in the actual behavior, that is
introducing a regression to users, and it was hidden within a software
refactoring.

Fixes: d0fe80890ab1 ("imx: Generalize fixup_thermal_trips")
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
arch/arm/mach-imx/fdt.c

index ac782e3ee636684efbaeb0bc1b295ab7f9d4974f..103c1fc5968afb46efc8e8ecf9038fd93af3cac1 100644 (file)
@@ -115,7 +115,7 @@ int fixup_thermal_trips(void *blob, const char *name)
 
                temp = 0;
                if (!strcmp(type, "critical"))
-                       temp = 1000 * (maxc - 5);
+                       temp = 1000 * maxc;
                else if (!strcmp(type, "passive"))
                        temp = 1000 * (maxc - 10);
                if (temp) {