]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/mediatek: mtk_hdmi_common: take i2c adapter module reference
authorJohan Hovold <johan@kernel.org>
Thu, 16 Jul 2026 13:21:03 +0000 (15:21 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 23 Jul 2026 23:01:29 +0000 (23:01 +0000)
commitd8a0962d3506f7c9fdc3cc49c81ff0b8ded09f2f
treea959bf8cdbd663e36203bccca7323ebc17bd8214
parentd19d8542808c3be5f4af849da6509e877b74d811
drm/mediatek: mtk_hdmi_common: take i2c adapter module reference

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@kernel.org>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20260716132103.1564995-1-johan@kernel.org/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_hdmi_common.c