]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
thermal: airoha: fix wrong variable in TEMPOFFSETL regmap_write 23780/head
authorWayen Yan <win847@gmail.com>
Sun, 14 Jun 2026 03:14:11 +0000 (11:14 +0800)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Thu, 18 Jun 2026 20:14:17 +0000 (22:14 +0200)
The regmap_write for TEMPOFFSETL should use low_temp but incorrectly
uses high_temp, causing the low temperature threshold to be misconfigured.

This prevents the low temperature trip point from working properly.

Fixes: 7d55e75edc87 ("thermal: airoha: convert to regmap API")
Signed-off-by: Wayen Yan <win847@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23780
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/airoha/patches-6.18/402-01-thermal-airoha-convert-to-regmap-API.patch

index 9414bef9cbc4d65c664ff187e9a8b030225b754b..6b6cbc3dd057fc57cecb58b512211682859994e7 100644 (file)
@@ -41,7 +41,7 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
 -              writel(TEMP_TO_RAW(priv, low) >> 4,
 -                     priv->base + EN7581_TEMPOFFSETL);
 +              regmap_write(priv->map, EN7581_TEMPOFFSETL,
-+                           TEMP_TO_RAW(priv, high) >> 4);
++                           TEMP_TO_RAW(priv, low) >> 4);
  
                enable_monitor = true;
        }