Re: [PATCH] i2c-algo-bit: Added the bus lock during a i2c transaction

From: Andi Shyti
Date: Thu Feb 27 2025 - 13:55:01 EST


Hi,

On Tue, Feb 25, 2025 at 05:03:14PM +0530, Anindya Sundar Gayen wrote:
> Earlier i2c-bus lock was not available to i2c-algo-bit driver
> for that reason if there are back to back i2c transaction occurs
> it may be possible to occur a race condition.
>
> To avoid the race condition we added a mutex lock mechanism which will
> help to protect the i2c_outb()with a proper lock.

what is the issue you are trying to fix? Can you refer to a
practical failure you received?

Thanks,
Andi