OSDN Git Service

drm/mediatek: Add wait_for_event for crtc disable by cmdq
authorjason-jh.lin <jason-jh.lin@mediatek.com>
Thu, 2 Dec 2021 06:40:38 +0000 (14:40 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Sun, 27 Feb 2022 03:19:07 +0000 (11:19 +0800)
commitaa2d5f2f168c8b380d4e94a32149cef16ed60efc
treee17145d3e7c1e94a3777f33739dc5c88c745a770
parent81cc7e51c4f1686b71e30046437056ece6b2cb4d
drm/mediatek: Add wait_for_event for crtc disable by cmdq

mtk_drm_crtc_atomic_disable will send an async cmd to cmdq driver,
so it may not finish when cmdq_suspend is called sometimes.

Add wait_for_event after sending async disable plane cmd to make
sure the lastest cmd is done before cmdq_suspend.

Signed-off-by: jason-jh.lin <jason-jh.lin@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20211202064039.20797-2-jason-jh.lin@mediatek.com/
drivers/gpu/drm/mediatek/mtk_drm_crtc.c