Re: [PATCH v4 1/4] i2c: designware: Introduce shutdown exported function
From: Andy Shevchenko
Date: Fri May 08 2026 - 04:14:38 EST
On Thu, May 07, 2026 at 08:05:15PM +0000, William A. Kennington III wrote:
> Introduce an exported shutdown function to safely shutdown the
> DesignWare I2C controller.
>
> This shutdown hook 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.
...
> + /*
> + * We only need to handle shutdown for target mode to ensure
> + * we NACK any incoming controller requests. Master mode cleanup
Master --> Controller
> + * is handled after each transfer in i2c_dw_xfer().
> + */
--
With Best Regards,
Andy Shevchenko