Skip to content
Commit 8431fff9 authored by Wojciech Macek's avatar Wojciech Macek Committed by Chun-Kuang Hu
Browse files

drm/mediatek: dp: Fix mtk_dp_aux_transfer return value

In case there is no DP device attached to the port the
transfer function should return IO error, similar to what
other drivers do.
In case EAGAIN is returned then any read from /dev/drm_dp_aux
device ends up in an infinite loop as the upper layers
constantly repeats the transfer request.

Fixes: f70ac097

 ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")
Signed-off-by: default avatarWojciech Macek <wmacek@chromium.org>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: default avatarCK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20240417103819.990512-1-wmacek@chromium.org/
Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
parent 499eb519
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment