Re: [PATCH] i2c: s3c2410: remove clients before unpreparing the clock
From: Andi Shyti
Date: Wed Dec 02 2026 - 10:35:10 EST
Hi Jiawen,
On Sun, Nov 29, 2026 at 04:45:25PM +0400, Jiawen Liu wrote:
> s3c24xx_i2c_remove() unprepares the controller clock before removing the
> adapter. Adapter deletion synchronously invokes bound client remove
> callbacks, which can issue SMBus transfers through their existing client
> handle. For example, ina209 restores its configuration and calibration
> during removal.
>
> The transfer path calls clk_enable(), which fails if this was the final
> clock preparation. Remove the adapter while its controller resources are
> still available, then release runtime PM and the clock preparation.
>
> Fixes: 34e81ad5f0b6 ("i2c: s3c2410: fix ABBA deadlock by keeping clock prepared")
> Signed-off-by: Jiawen Liu <1298662399@xxxxxx>
please group similar patches in a series.
Andi