summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorVitaliy Sochnev <sochnev.v.74@gmail.com>2026-09-29 19:52:06 +0300
committerDaniel Lezcano <daniel.lezcano@kernel.org>2026-10-14 09:45:40 +0200
commit4a0f3193c68eb41882ccf7c298f5cd0b17efb8ab (patch)
tree9471126c3971fa1727404709a1893e68a5376ca3 /tools/perf/scripts/python/stackcollapse.py
parentb17d799ce49bfaad68be5ff3df995b3bd021a9d7 (diff)
thermal/drivers/airoha: Fix AN7583 ADC mux field mapping
On AN7583, bits 3:1 of 0x2e4 select the sensor (0 bandgap, 5 GbE, 6 CPU) and bits 3:2 of 0x2a0 select the diode (0 D0, 1 ZERO, 2 D1). The driver names them the other way round: MUX_TADC is 0x2e4, MUX_SENSOR is 0x2a0. v5 of the AN7583 series swapped the airoha_set_thermal_mux() arguments to match these names. The diode index now goes to the sensor selector, so the zone reads mux positions 1, 0 and 2 (PAD_AVS, bandgap, core voltage) instead of the bandgap diodes. On a Nokia XG-040G-MF the result crosses the critical trip and the board powers off during boot. Swap the field definitions. MUX_TADC then selects the diode, as on EN7581, and the existing call order is correct. Fixes: b20d9782756a ("thermal/drivers/airoha: Add support for AN7583 Thermal Sensor") Signed-off-by: Vitaliy Sochnev <sochnev.v.74@gmail.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org> Link: https://patch.msgid.link/20260929165209.69669-2-sochnev.v.74@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions