Re: [PATCH v10] i2c: riic: Implement bus recovery

From: Lad, Prabhakar
Date: Fri May 02 2025 - 04:04:56 EST


Hi Andi,

On Thu, May 1, 2025 at 10:19 PM Andi Shyti <andi.shyti@xxxxxxxxxx> wrote:
>
> 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.
>
Thank you.

Cheers,
Prabhakar