Skip to content

Commit eeda05b

Browse files
AngeloGioacchino Del RegnoChun-Kuang Hu
authored andcommitted
drm/mediatek: dsi: Add atomic {destroy,duplicate}_state, reset callbacks
Add callbacks for atomic_destroy_state, atomic_duplicate_state and atomic_reset to restore functionality of the DSI driver: this solves vblank timeouts when another bridge is present in the chain. Tested bridge chain: DSI <=> ANX7625 => aux-bus panel Fixes: 7f6335c ("drm/mediatek: Modify dsi funcs to atomic operations") Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Tested-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Tested-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220721172727.14624-1-angelogioacchino.delregno@collabora.com/ Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
1 parent 568035b commit eeda05b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/mediatek/mtk_dsi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,10 +808,13 @@ static void mtk_dsi_bridge_atomic_post_disable(struct drm_bridge *bridge,
808808

809809
static const struct drm_bridge_funcs mtk_dsi_bridge_funcs = {
810810
.attach = mtk_dsi_bridge_attach,
811+
.atomic_destroy_state = drm_atomic_helper_bridge_destroy_state,
811812
.atomic_disable = mtk_dsi_bridge_atomic_disable,
813+
.atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state,
812814
.atomic_enable = mtk_dsi_bridge_atomic_enable,
813815
.atomic_pre_enable = mtk_dsi_bridge_atomic_pre_enable,
814816
.atomic_post_disable = mtk_dsi_bridge_atomic_post_disable,
817+
.atomic_reset = drm_atomic_helper_bridge_reset,
815818
.mode_set = mtk_dsi_bridge_mode_set,
816819
};
817820

0 commit comments

Comments
 (0)