Re: [PATCH] iio: imu: adis16400: Check return value of spi_setup()
From: Andy Shevchenko
Date: Thu Sep 03 2026 - 09:59:57 EST
On Thu, Sep 03, 2026 at 01:27:33PM +0100, Salah Triki wrote:
> In adis16400_initial_setup(), the return value of spi_setup() was ignored.
> If SPI configuration fails, the driver would proceed with the
> initialization anyway, leading to undefined behavior or silent failures
> during device setup.
>
> Check the return value of spi_setup() and return the error code immediately
> if it fails.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
--
With Best Regards,
Andy Shevchenko