Re: [PATCH v5 0/4] i2c: designware: Improve device disable handling
From: Mika Westerberg
Date: Tue May 12 2026 - 06:27:21 EST
On Mon, May 11, 2026 at 08:06:25PM +0000, William A. Kennington III wrote:
> When the I2C controller attempts a new transaction while the target
> controller is shutting down or restarting, it can lead to bus lockups
> and system bootloops if the hardware enters an inconsistent state.
>
> This patch series addresses this by ensuring that the internal state
> machines are properly cleared when disabling the controller if target
> activity is detected.
>
> Additionally, it adds a shutdown hook that gracefully sets the target
> disable bit before disabling the controller. This guarantees that any
> incoming requests from the controller are immediately NACKed during
> shutdown, preventing the bus from hanging.
>
> Signed-off-by: William A. Kennington III <william@xxxxxxxxxxxxxxx>
All look good to me,
Acked-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>