]> git.itanic.dy.fi Git - linux-stable/commit
drm/mediatek: Separate poweron/poweroff from enable/disable and define new funcs
authorJitao Shi <jitao.shi@mediatek.com>
Fri, 20 May 2022 02:00:05 +0000 (10:00 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 6 Jun 2022 23:23:05 +0000 (07:23 +0800)
commitcde7e2e35c2866d22a3a012e72a41052dfcc255d
treec6392e2773f80a6e9a70ee5bf980afbb78de9e1d
parent7f6335c6a258edf4d5ff1b904bc033188dc7b48b
drm/mediatek: Separate poweron/poweroff from enable/disable and define new funcs

In order to match the changes of "Use the drm_panel_bridge API",
the poweron/poweroff of dsi is extracted from enable/disable and
defined as new funcs (atomic_pre_enable/atomic_post_disable).

Since dsi_poweron is moved from dsi_enable to pre_enable function, in
order to avoid poweron failure, the operation of dsi register fails to
cause bus hang. Therefore, the protection mechanism is added to the
dsi_enable function.

Fixes: 2dd8075d2185 ("drm/mediatek: mtk_dsi: Use the drm_panel_bridge API")
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/1653012007-11854-3-git-send-email-xinlei.lee@mediatek.com/
Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
Signed-off-by: Xinlei Lee <xinlei.lee@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dsi.c