i2c: add slave testunit driver
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 11 Sep 2020 07:16:58 +0000 (09:16 +0200)
committerWolfram Sang <wsa@kernel.org>
Mon, 21 Sep 2020 09:02:17 +0000 (11:02 +0200)
commita8335c64c5f0916c9ee8b88835ce114085c3642e
treea26de00eeea4a585165d311baa83bf71275323d6
parentb62590a92058f3edf8884b46312848e8aafe0922
i2c: add slave testunit driver

Here is an I2C slave backend driver which allows to test some uncommon
functionalities of the I2C and SMBus world. Usually, you need specific
devices to test e.g. SMBus Host Notify and such. With this driver you
just need the slave interface of another I2C controller.

This initial version has testcases for multi-master and SMBus Host
Notify. Already planned but not yet implemented are SMBus Alert and
messages with I2C_M_RECV_LEN.

Please read the documentation for further details.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Documentation/i2c/slave-testunit-backend.rst [new file with mode: 0644]
drivers/i2c/Kconfig
drivers/i2c/Makefile
drivers/i2c/i2c-slave-testunit.c [new file with mode: 0644]