]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/mediatek: mtk_hdmi_ddc_v2: Add transfer abort on timeout cases
authorLouis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Fri, 5 Dec 2025 14:22:26 +0000 (15:22 +0100)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Tue, 30 Dec 2025 15:54:09 +0000 (15:54 +0000)
commit2788c969d89afb1e6ff66b8530584a634d1327dd
treeb59967ba294281bc341e538ce89e96fa9053848a
parent4e7fd55411faf6c1abfa2ddd1504713b2006d166
drm/mediatek: mtk_hdmi_ddc_v2: Add transfer abort on timeout cases

During a read or write transfer, the mtk_hdmi_ddc_v2 driver polls the
DDC_I2C_IN_PROG bit of HPD_DDC_STATUS register to check if the transfer
completes but do no particular action if a timeout is reached. It could
lead the next transfer attempts to fail because the faulty transfer was
not aborted. So, add in both low level read and write functions a abort
action by writing the DDC_CTRL register with the ABORT_XFER command
value.

Fixes: 8d0f79886273 ("drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188")
Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20251205-mtk-hdmi-ddc-v2-fixes-v1-1-260dd0d320f4@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_hdmi_ddc_v2.c