hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/thermal/imx8mm_thermal.c
....@@ -65,8 +65,14 @@
6565 u32 val;
6666
6767 val = readl_relaxed(tmu->base + TRITSR) & TRITSR_TEMP0_VAL_MASK;
68
+
69
+ /*
70
+ * Do not validate against the V bit (bit 31) due to errata
71
+ * ERR051272: TMU: Bit 31 of registers TMU_TSCR/TMU_TRITSR/TMU_TRATSR invalid
72
+ */
73
+
6874 *temp = val * 1000;
69
- if (*temp < VER1_TEMP_LOW_LIMIT)
75
+ if (*temp < VER1_TEMP_LOW_LIMIT || *temp > VER2_TEMP_HIGH_LIMIT)
7076 return -EAGAIN;
7177
7278 return 0;