]> git.itanic.dy.fi Git - linux-stable/commit
drm/mediatek: dsi: Add atomic {destroy,duplicate}_state, reset callbacks
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 21 Jul 2022 17:27:27 +0000 (19:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:11:46 +0000 (11:11 +0200)
commite352fea1d0fccd9a34409df6ed5deec823594405
treec88d1cef31c3649382414085d468a07beb257dc6
parent43733b6c9fdaa991f0c0239701f5424aafde9522
drm/mediatek: dsi: Add atomic {destroy,duplicate}_state, reset callbacks

[ Upstream commit eeda05b5e92f51d9a09646ecb493f0a1e872a6ef ]

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