drm/mediatek: dpi: Only enable dpi after the bridge is enabled
authorGuillaume Ranquet <granquet@baylibre.com>
Fri, 1 Jul 2022 03:58:44 +0000 (11:58 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 4 Jul 2022 14:16:38 +0000 (22:16 +0800)
commitaed61ef6beb911cc043af0f2f291167663995065
tree903c36d64d9787b21eb6f451d756e2ea3c7e44a0
parentc9ed0713b3c35fc45677707ba47f432cad95da56
drm/mediatek: dpi: Only enable dpi after the bridge is enabled

Enabling the dpi too early causes glitches on screen.

Move the call to mtk_dpi_enable() at the end of the bridge_enable
callback to ensure everything is setup properly before enabling dpi.

Fixes: 9e629c17aa8d ("drm/mediatek: Add DPI sub driver")
Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220701035845.16458-16-rex-bc.chen@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dpi.c