summaryrefslogtreecommitdiffstats
path: root/Documentation/i2c/gpio-fault-injection (follow)
Commit message (Collapse)AuthorAgeFilesLines
* docs: i2c: convert to ReST and add to driver-api booksetMauro Carvalho Chehab2019-07-311-136/+0
| | | | | | | | | | | Convert each file at I2C subsystem, renaming them to .rst and adding to the driver-api book. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Acked-by: Wolfram Sang <wsa@the-dreams.de> Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
* i2c: gpio: fault-injector: add 'inject_panic' injectorWolfram Sang2019-02-231-0/+26
| | | | | | | | Add a fault injector simulating a Kernel panic happening after starting a transfer. Read the docs for its usage. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
* i2c: gpio: fault-injector: add 'lose_arbitration' injectorWolfram Sang2019-02-231-0/+25
| | | | | | | | | | | 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>
* i2c: gpio: fault-injector: better SPHINX style in docsWolfram Sang2019-02-051-3/+7
| | | | | | | | | We don't use SPHINX currently in I2C documentation; but preparing the I2C fault injector docs already is a good idea since it makes it easier to read. Especially as new stuff is going to be added soon. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
* i2c: gpio: fault-injector: add incomplete_write_byteWolfram Sang2018-07-031-0/+19
| | | | | | | | | Add another injector for an incomplete transfer. As mentioned in the docs, this one is important to check bus recovery algorithms with it. Otherwise random data may be sent to devices! Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
* i2c: gpio: fault-injector: refactor incomplete transferWolfram Sang2018-07-031-11/+19
| | | | | | | | Make the incomplete_transfer routine reusable, so we can add other test cases with different patterns later. Prepare the docs for that, too. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
* i2c: gpio: add fault injectorWolfram Sang2017-12-031-0/+54
Add fault injection capabilities to the i2c-gpio driver. When connected to another I2C bus, it can create unusual states which the other I2C bus master driver needs to handle. Only for debugging! Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>