Re: [PATCH v2] drm/mediatek/dp: fix mtk_dp_aux_transfer return value

From: AngeloGioacchino Del Regno
Date: Wed Apr 17 2024 - 09:52:31 EST


Il 17/04/24 12:38, Wojciech Macek ha scritto:
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: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")
Signed-off-by: Wojciech Macek <wmacek@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>