OpenCloudOS-Kernel/drivers/gpu/drm/mediatek
Wojciech Macek 22432baba4 drm/mediatek: dp: Fix mtk_dp_aux_transfer return value
[ Upstream commit 8431fff9e0f3fc1c5844cf99a73b49b63ceed481 ]

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: f70ac097a2 ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")
Signed-off-by: Wojciech Macek <wmacek@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20240417103819.990512-1-wmacek@chromium.org/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:12:38 +02:00
..
Kconfig drm/mediatek: dp: Add support for embedded DisplayPort aux-bus 2023-08-09 23:25:00 +00:00
Makefile drm/mediatek: Add ovl_adaptor support for MT8195 2023-03-22 16:25:16 +00:00
mtk_cec.c drm/mediatek: Convert to platform remove callback returning void 2023-08-10 23:41:55 +00:00
mtk_cec.h
mtk_disp_aal.c Mediatek DRM Next for Linux 6.6 2023-08-15 12:07:19 +10:00
mtk_disp_ccorr.c Mediatek DRM Next for Linux 6.6 2023-08-15 12:07:19 +10:00
mtk_disp_color.c Mediatek DRM Next for Linux 6.6 2023-08-15 12:07:19 +10:00
mtk_disp_drv.h drm/mediatek: Add ovl_adaptor get format function 2023-04-03 03:06:01 +00:00
mtk_disp_gamma.c Mediatek DRM Next for Linux 6.6 2023-08-15 12:07:19 +10:00
mtk_disp_merge.c drm/mediatek: Fix underrun in VDO1 when switches off the layer 2024-01-25 15:35:36 -08:00
mtk_disp_ovl.c Mediatek DRM Next for Linux 6.6 2023-08-15 12:07:19 +10:00
mtk_disp_ovl_adaptor.c Mediatek DRM Next for Linux 6.6 2023-08-15 12:07:19 +10:00
mtk_disp_rdma.c Mediatek DRM Next for Linux 6.6 2023-08-15 12:07:19 +10:00
mtk_dp.c drm/mediatek: dp: Fix mtk_dp_aux_transfer return value 2024-06-12 11:12:38 +02:00
mtk_dp_reg.h drm/mediatek: dp: Remove unused register definitions 2022-09-19 12:17:42 +03:00
mtk_dpi.c drm/mediatek: Remove the redundant driver data for DPI 2024-01-25 15:35:36 -08:00
mtk_dpi_regs.h drm/mediatek: dpi: Add dp_intf support 2022-07-06 22:51:44 +08:00
mtk_drm_crtc.c drm/mediatek: Fix a null pointer crash in mtk_drm_crtc_finish_page_flip 2024-03-26 18:19:54 -04:00
mtk_drm_crtc.h drm/mediatek: Add drm ovl_adaptor sub driver for MT8195 2023-03-22 16:45:23 +00:00
mtk_drm_ddp_comp.c drm/mediatek: Fix uninitialized symbol 2023-08-07 23:26:07 +00:00
mtk_drm_ddp_comp.h drm/mediatek: Add drm ovl_adaptor sub driver for MT8195 2023-03-22 16:45:23 +00:00
mtk_drm_drv.c drm/mediatek: fix kernel oops if no crtc is found 2023-12-20 17:01:54 +01:00
mtk_drm_drv.h drm/mediatek: Add drm ovl_adaptor sub driver for MT8195 2023-03-22 16:45:23 +00:00
mtk_drm_gem.c drm/mediatek: Add 0 size check to mtk_drm_gem_obj 2024-06-12 11:11:59 +02:00
mtk_drm_gem.h dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
mtk_drm_plane.c drm/mediatek: Fix iommu fault by swapping FBs after updating plane state 2023-11-20 11:59:11 +01:00
mtk_drm_plane.h drm/mediatek: Refactor pixel format logic 2023-03-12 15:03:56 +00:00
mtk_dsi.c drm/mediatek: dsi: Fix DSI RGB666 formats and definitions 2024-03-26 18:19:49 -04:00
mtk_ethdr.c drm: Explicitly include correct DT includes 2023-07-21 09:12:43 +02:00
mtk_ethdr.h drm/mediatek: Add ETHDR support for MT8195 2023-03-22 16:25:00 +00:00
mtk_hdmi.c drm/mediatek: Convert to platform remove callback returning void 2023-08-10 23:41:55 +00:00
mtk_hdmi.h
mtk_hdmi_ddc.c drm/mediatek: Convert to platform remove callback returning void 2023-08-10 23:41:55 +00:00
mtk_hdmi_regs.h
mtk_mdp_rdma.c drm/mediatek: Return error if MDP RDMA failed to enable the clock 2024-01-25 15:35:36 -08:00
mtk_mdp_rdma.h drm/mediatek: Add display MDP RDMA support for MT8195 2022-06-27 22:24:14 +08:00