diff mbox series

imx: imx9: Set correct critical temperature

Message ID 20240813121217.2279187-1-primoz.fiser@norik.com
State Accepted
Commit 8827ec575e3f5708e41a7dd440393aac28dce2b5
Headers show
Series imx: imx9: Set correct critical temperature | expand

Commit Message

Primoz Fiser Aug. 13, 2024, 12:12 p.m. UTC
Commit 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses")
wrongly set critical temperature to (maxc - 5) instead of maxc.

Fixes: 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses")
Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
---
 arch/arm/mach-imx/imx9/soc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Fabio Estevam Aug. 23, 2024, 7:16 p.m. UTC | #1
On Tue, Aug 13, 2024 at 9:12 AM Primoz Fiser <primoz.fiser@norik.com> wrote:
>
> Commit 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses")
> wrongly set critical temperature to (maxc - 5) instead of maxc.
>
> Fixes: 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses")
> Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>

Applied, thanks.
diff mbox series

Patch

diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c
index 32208220b207..f88e7a222dd4 100644
--- a/arch/arm/mach-imx/imx9/soc.c
+++ b/arch/arm/mach-imx/imx9/soc.c
@@ -536,7 +536,7 @@  static 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) {