Hi Tim,

On Thu, Mar 24, 2022 at 12:32 PM Tim Harvey <thar...@gateworks.com> wrote:
>
> commit 7c84319af9c7 ("dm: gpio: Correct use of -ENODEV in drivers")
> changed the return code for an I2C NAK from -ENODEV to -EREMOTEIO.

I think we should be consistent with Linux and return -ENXIO for the NACK case:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/i2c/fault-codes.rst?h=v5.17#n88

"ENXIO
Returned by I2C adapters to indicate that the address phase
of a transfer didn't get an ACK.  While it might just mean
an I2C device was temporarily not responding, usually it
means there's nothing listening at that address."

Reply via email to