Re: [PATCH] drm/mediatek: mtk_hdmi_common: take i2c adapter module reference
From: Chun-Kuang Hu
Date: Thu Jul 23 2026 - 20:11:18 EST
Johan Hovold <johan@xxxxxxxxxx> 於 2026年7月16日週四 下午1:21寫道:
>
> 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.
Applied to mediatek-drm-fixes [1], thanks.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-fixes
Regards,
Chun-Kuang.
>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
> ---