Re: [PATCH] iio: adc: fsl-imx25-gcq: check the return value of the
From: Andy Shevchenko
Date: Thu Oct 22 2026 - 12:38:52 EST
On Thu, Oct 22, 2026 at 10:55:59AM -0500, Frank Li wrote:
> On Thu, Oct 22, 2026 at 04:24:45AM +0530, Arnav Kapoor wrote:
> > The driver ignores the return value of all the regmap accesses. If one
> > of them fails, e.g. because the memory mapped registers can't be
> > accessed, the driver just continues with an undefined state.
>
> MMIO never return failure. if write register fail at irq, it will cause
> irq storm.
Strictly speaking it may lead to some CPU exceptions in some cases, but that's
different level of failures and not related to the error codes from regmap IO
accessors.
--
With Best Regards,
Andy Shevchenko