Re: [PATCH v10] i2c: riic: Implement bus recovery
From: Andi Shyti
Date: Thu May 01 2025 - 17:19:24 EST
Hi Lad,
On Thu, May 01, 2025 at 09:40:03PM +0100, Prabhakar wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
>
> Implement I2C bus recovery support for the RIIC controller by making use
> of software-controlled SCL and SDA line manipulation. The controller allows
> forcing SCL and SDA levels through control bits, which enables generation
> of manual clock pulses and a stop condition to free a stuck bus.
>
> This implementation wires up the bus recovery mechanism using
> i2c_generic_scl_recovery and provides get/set operations for SCL and SDA.
>
> This allows the RIIC driver to recover from bus hang scenarios where SDA
> is held low by a slave.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
> Reviewed-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
> Tested-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
> Reviewed-by: Fabrizio Castro <fabrizio.castro.jz@xxxxxxxxxxx>
I'm happy to see this patch in. Thanks Wolfram for your tests and
reviews.
Merged to i2c/i2c-host.
Thanks,
Andi