]> 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:10:29 +0000 (11:10 +0200)
commit3ca272b231d633f60bc1ca99b94b5d1302fc2b44
tree62b0ac1e15a779f07e5c0515288c6c26cb8eafc2
parent39f97714f3e2e76ba87e58ba141509902d61970b
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