Re: [PATCH] PCI/pwrctrl: tc9563: take i2c adapter module reference
From: Bartosz Golaszewski
Date: Fri Jul 17 2026 - 05:00:01 EST
On Thu, 16 Jul 2026 15:25:32 +0200, Johan Hovold <johan@xxxxxxxxxx> said:
> The i2c subsystem currently blocks during adapter deregistration
> whenever there are consumers holding a reference.
>
> Switch to using of_get_i2c_adapter_by_node() which also takes a
> reference to the adapter module so that an attempt to unload the module
> while in use fails gracefully instead of blocking uninterruptibly.
>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
> ---
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>