]> git.baikalelectronics.ru Git - kernel.git/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)
commit23c09cfcb9f1b6c23fb18e688282a01d529e5652
treec6392e2773f80a6e9a70ee5bf980afbb78de9e1d
parentc6d694d8bfbdf59d15d314d214549961d257ffbd
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: 391bb3ed9f63 ("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