[PATCH] i2c: bcm2835: remove clients before releasing resources
Andi Shyti
andi.shyti at kernel.org
Wed Dec 2 07:35:41 PST 2026
Hi Jiawen,
On Sun, Nov 29, 2026 at 04:29:28PM +0400, Jiawen Liu wrote:
> bcm2835_i2c_remove() releases the exclusive clock-rate reservation,
> disables the bus clock, and frees the transfer IRQ before removing the
> adapter. Adapter deletion synchronously invokes bound client remove
> callbacks, and those callbacks may issue I2C transfers. For example,
> ina209 restores its configuration and calibration during removal.
>
> The transfer path waits for completion signaled by the IRQ handler that
> has already been freed, so cleanup times out and may access the controller
> with its bus clock disabled. Remove the adapter first, then release the
> resources after all clients have gone away.
>
> Fixes: f3b54b9a066e ("i2c: add bcm2835 driver")
> 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