[PATCH v3 5/6] iio: light: stk3310: log error if reading the chip id fails
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Mon Oct 28 07:45:35 PDT 2024
On Mon, Oct 28, 2024 at 10:19:59AM -0400, Aren Moynihan wrote:
> If the chip isn't powered, this call is likely to return an error.
> Without a log here the driver will silently fail to probe. Common errors
> are ENXIO (when the chip isn't powered) and ETIMEDOUT (when the i2c bus
> isn't powered).
The commit message does not explain why dev_err_probe() has been chosen
and not simple dev_err().
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list