docs: i2c: slave-interface: return errno when handle I2C_SLAVE_WRITE_REQUESTED
authorQuan Nguyen <quan@os.amperecomputing.com>
Thu, 15 Sep 2022 03:54:40 +0000 (10:54 +0700)
committerWolfram Sang <wsa@kernel.org>
Wed, 28 Sep 2022 19:41:59 +0000 (21:41 +0200)
commit09a7bab68b22ff862766d6ec543fdbaf126cd688
treec86046a19b39c9c1cb4ac7d72e27fcd8a982da28
parentbe18c5ede25da39a0eda541f6de3620a30cf731f
docs: i2c: slave-interface: return errno when handle I2C_SLAVE_WRITE_REQUESTED

In case backend is not ready, ie: fail to wakeup or initialization, on
the returning of the I2C_SLAVE_WRITE_REQUESTED event, bus driver should
aware the backend status and might auto sending NACK on the next
incoming bytes for I2C master to retry.

Signed-off-by: Quan Nguyen <quan@os.amperecomputing.com>
Links:https://lore.kernel.org/linux-arm-kernel/556fa9e1-c54b-8370-4de7-c2d3ec7d6906@os.amperecomputing.com/
[wsa: made some wording more precise]
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Documentation/i2c/slave-interface.rst