]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:27 +0000 (14:23 +0200)
commit30b70243010cc8824afa98e827d11a6421440dc6
treeaea9d356b11180531e5d4fce7130c69e773dafc7
parent86d2ab5227ce0e06c0a1023b270da6910bd4f891
drm/mediatek: dpi: Only enable dpi after the bridge is enabled

[ Upstream commit 1b207ac09499a86c44205ef0f29a53e6e5bba830 ]

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: 81d04dda894e ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mediatek/mtk_dpi.c