Re: [PATCH v2 1/3] iio: adc: ti-ads7924: Wait after hardware reset
From: Andy Shevchenko
Date: Fri Dec 04 2026 - 12:00:35 EST
On Fri, Dec 04, 2026 at 01:14:56PM +0100, Rickard Andersson wrote:
>
> After the reset GPIO is deasserted, ads7924_reset() returns and the
> driver immediately writes MODECNTRL. On a board where the reset line
> is on an I2C GPIO expander (TCA6424), this first write fails:
>
> ads7924 2-0049: failed to set awake mode (-EIO)
> ads7924 2-0049: error -EIO: failed to set conversion mode
>
> The device responds normally on the bus some time later. The
> datasheet does not specify a startup time after reset, so wait
> 10 ms before the first register access.
...
> + /*
> + * Startup time after reset is not specified in the datasheet.
> + * Need to wait before the first register access on some systems.
> + */
> + fsleep(10 * USEC_PER_MSEC);
msleep(10) is also okay (the usual threshold is 20 ms, though).
But the current approach is acceptable.
--
With Best Regards,
Andy Shevchenko