After sending out the 'lose_arbitration' injector as RFC, here is now a patch
series with that injector updated and another one added.

The first one successfully triggers an ARBITRATION_LOST interrupt on my Renesas
Lager board (R-Car H2). The other one leaves SCL low on the same board because
of the Kernel panic, so reboot handlers need to handle that. But more
interestingly, it causes a deadlock because it needs this I2C adapter to
trigger a reboot via the PMIC. This is a good testcase for the soon to be
developed master_xfer_atomic callback for the I2C core.

Changes since V1:

* fixed a typo in the docs and used UTF8 for ┬Ás there
* limit user-supplied delay to 100ms
* don't overwrite existing errorcode if gpiod_direction_output() suceeds

No error propagation when we receive a signal. This is all handled seperately
in other layers as further tests have shown.

Wolfram Sang (2):
  i2c: gpio: fault-injector: add 'lose_arbitration' injector
  i2c: gpio: fault-injector: add 'inject_panic' injector

 Documentation/i2c/gpio-fault-injection |  51 ++++++++++++++++
 drivers/i2c/busses/i2c-gpio.c          | 103 +++++++++++++++++++++++++++++++++
 2 files changed, 154 insertions(+)


Reply via email to