Re: [PATCH v2 3/3] iio: adc: ti-ads7924: Use reset controller for hardware reset

From: Andy Shevchenko

Date: Fri Dec 04 2026 - 12:02:12 EST


On Fri, Dec 04, 2026 at 01:14:58PM +0100, Rickard Andersson wrote:
>
> The reset GPIO may be provided by a controller that can sleep, such
> as an I2C GPIO expander. ads7924_reset() toggles it with
> gpiod_set_value(), which triggers WARN_ON(can_sleep) in gpiolib on
> such systems.
>
> Use the reset controller API instead because it can sleep.
>
> Note that the hardware reset now requires CONFIG_RESET_GPIO. Without
> it, the reset GPIO will be unused.

Yeah, this rises the question about configuration and dependencies.
We need to work out the common approach in IIO for this type of conversions.

--
With Best Regards,
Andy Shevchenko