From: Wayen Yan Date: Sun, 14 Jun 2026 03:14:11 +0000 (+0800) Subject: thermal: airoha: fix wrong variable in TEMPOFFSETL regmap_write X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F23780%2Fhead;p=thirdparty%2Fopenwrt.git thermal: airoha: fix wrong variable in TEMPOFFSETL regmap_write 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 Link: https://github.com/openwrt/openwrt/pull/23780 Signed-off-by: Jonas Jelonek --- diff --git a/target/linux/airoha/patches-6.18/402-01-thermal-airoha-convert-to-regmap-API.patch b/target/linux/airoha/patches-6.18/402-01-thermal-airoha-convert-to-regmap-API.patch index 9414bef9cbc..6b6cbc3dd05 100644 --- a/target/linux/airoha/patches-6.18/402-01-thermal-airoha-convert-to-regmap-API.patch +++ b/target/linux/airoha/patches-6.18/402-01-thermal-airoha-convert-to-regmap-API.patch @@ -41,7 +41,7 @@ Signed-off-by: Christian Marangi - 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; }