Re: [PATCH] i2c: altera: remove clients before disabling the clock

From: Andi Shyti

Date: Wed Dec 02 2026 - 10:35:33 EST


Hi Jiawen,

On Sun, Nov 29, 2026 at 04:43:02PM +0400, Jiawen Liu wrote:
> altr_i2c_remove() disables the controller input clock before removing the
> adapter. Adapter deletion synchronously invokes bound client remove
> callbacks, and those callbacks can issue SMBus transfers. For example,
> bh1750 sends a power-down command during removal.
>
> Those transfers access Altera controller registers and wait for transfer
> interrupts, which can fail after the clock has been gated. Remove the
> adapter while its transfer resources are still available, then disable
> the clock.
>
> Fixes: 0560ad576268 ("i2c: altera: Add Altera I2C Controller driver")
> Signed-off-by: Jiawen Liu <1298662399@xxxxxx>

please group similar patches in a series.

Andi