[PATCH] i2c: s3c2410: remove clients before unpreparing the clock

Andi Shyti andi.shyti at kernel.org
Wed Dec 2 07:35:01 PST 2026


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 at qq.com>

please group similar patches in a series.

Andi



More information about the linux-arm-kernel mailing list