]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: testunit: return current command on read messages
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 11 Aug 2024 21:23:16 +0000 (23:23 +0200)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 14 Aug 2024 17:56:51 +0000 (19:56 +0200)
commit45c03c65ea77bd1a28ed1791b61594f579ee01ab
treefa692b6d60ff5bc8f2ad8b7d6d70658911660930
parent6b21470af096e7f3acc4f0521354c5b044e2372c
i2c: testunit: return current command on read messages

Because the testunit can start tests in the future via the DELAY
register, it may happen that a command is still pending. Support
detecting that by returning the number of a command in progress (if
there is one).

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Documentation/i2c/slave-testunit-backend.rst
drivers/i2c/i2c-slave-testunit.c