]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45502071bc28aa249fe40084e99d14bef72956f8
treea26de00eeea4a585165d311baa83bf71275323d6
parent315ea3b268e8972f6d7542d3aa35bb2b20a81ba1
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]