Re: [PATCH 1/3] iio: adc: ti-ads7924: Allow sleepable GPIO for reset

From: Andy Shevchenko

Date: Thu Dec 03 2026 - 09:21:08 EST


On Thu, Dec 03, 2026 at 02:39:20PM +0100, Rickard Andersson wrote:
>
> The reset GPIO may be provided by a controller that can sleep, such
> as an I2C GPIO expander. On some systems this triggers a
> WARN_ON(can_sleep) stacktrace in gpiolib.
>
> Use gpiod_set_value_cansleep instead. ads7924_reset is only called
> from probe function, so sleeping is allowed.

Can we switch to use reset-gpio driver and hence reset APIs here?
It would be a better fix in my opinion.

--
With Best Regards,
Andy Shevchenko