Re: [PATCH] drm/mediatek: mtk_hdmi_common: take i2c adapter module reference

Chun-Kuang Hu <[email protected]>
Newsgroups org.infradead.lists.linux-mediatek,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel
Message-ID <CAAOTY_8+u-yswp+Gsj1ZnaJWh3fZ6Ndxd=JeUie7ZVG1pBYyeA@mail.gmail.com>
Johan Hovold <[email protected]> 於 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 <[email protected]>
> ---
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.