i2c: gpio: fault-injector: add 'lose_arbitration' injector
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 19 Feb 2019 16:39:45 +0000 (17:39 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 23 Feb 2019 09:33:51 +0000 (10:33 +0100)
commit63e57b6f191db99ffdd0dc6c7b9ee6b2cf7abb04
tree9a2544d399233f0e601dd5a0b7260be0aa8a9089
parent6b9932bc28fd61b83a8cb86bf0de1a86e5c18fa3
i2c: gpio: fault-injector: add 'lose_arbitration' injector

Add a fault injector simulating 'arbitration lost' from multi-master
setups. Read the docs for its usage.

A helper function for future fault injectors using SCL interrupts is
created to achieve this.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/i2c/gpio-fault-injection
drivers/i2c/busses/i2c-gpio.c