Re: [PATCH v2 2/4] thermal/drivers/airoha: Serialise access to the shared ADC

From: Daniel Lezcano

Date: Tue Sep 29 2026 - 05:06:46 EST


On 9/15/26 21:11, Vitaliy Sochnev wrote:
A read selects the sensor and walks three diodes with a 10 ms settle on
each. Nothing serialises this, so concurrent reads interleave and
convert samples taken at another mux position.

Mux writes are dropped silently unless PLLRG_PROTECT is lifted, and its
save and restore do not nest. The cached TADC value also skips a write
after another reader has moved the mux.

With the AN7583 sensors read as parallel zones during CPU frequency
changes, a zone crossed its critical trip on a chip at 55 C and the
board shut down.

Serialise the sequence, drop the cache, check the selection after
writing and after sampling, and return -EAGAIN if it does not hold.

Signed-off-by: Vitaliy Sochnev <sochnev.v.74@xxxxxxxxx>
---

Should this have a Fixes: tag?