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

From: Daniel Lezcano

Date: Tue Sep 29 2026 - 12:06:59 EST


On 9/29/26 18:03, Vitaliy Sochnev wrote:
On 9/29/26 09:53, Daniel Lezcano wrote:
On 9/15/26 21:11, Vitaliy Sochnev wrote:
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?

No. Before this series each device registers a single zone, and
thermal_zone_get_temp() serialises reads under the zone lock, so the
current driver never reads the ADC concurrently. The race appears with
patch 4/4, which registers a zone per sensor; this patch prepares for it.

I can state that in the commit message in v3 if you prefer.

Yes, thanks