Re: [PATCH v4 2/9] iio: temperature: ltc2983: Fix reinit_completion() called after conversion start

From: Jonathan Cameron

Date: Wed May 27 2026 - 12:22:31 EST


On Mon, 25 May 2026 19:39:29 +0300
Liviu Stan <liviu.stan@xxxxxxxxxx> wrote:

> reinit_completion() was called after regmap_write() initiated the hardware
> conversion, creating a race window where the interrupt could fire and call
> complete() before reinit_completion() reset the completion.
>
> Move reinit_completion() before the regmap_write() to close the race.
> ltc2983_eeprom_cmd() already does it in the correct order.
>
> Fixes: f110f3188e56 ("iio: temperature: Add support for LTC2983")
> Signed-off-by: Liviu Stan <liviu.stan@xxxxxxxxxx>
Applied the slow way (to the testing branch of iio.git) but marked for stable.