Re: [PATCH v2] iio: inkern: guard fwnode_xlate with info_exist_lock
From: Arnav Kapoor
Date: Thu Nov 26 2026 - 01:55:32 EST
On Thu, Nov 26, 2026 at 06:06:15AM +0000, Ilia Snezhkov wrote:
> Hold iio_dev_opaque->info_exist_lock with scoped_guard(mutex, ...)
> matching the rest of inkern.c, and return -EPROBE_DEFER if
> indio_dev->info is NULL.
Thanks for the respin. -EPROBE_DEFER matches what the !idev path
already returns, so the race no longer looks like the -ENODEV
"keep looking" case to the parent/map-list fallbacks, and the
unrelated num_channels check is gone. Applies to iio testing and is
checkpatch clean.
Reviewed-by: Arnav Kapoor <kapoorarnav43@xxxxxxxxx>