drm/mediatek: Ensure bridge disable happends before suspend
authorHsin-Yi Wang <hsinyi@chromium.org>
Wed, 29 Jun 2022 19:05:46 +0000 (03:05 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 4 Jul 2022 13:42:43 +0000 (21:42 +0800)
commit0f15d785ff2d59884f6271bb4ba4522596f218c7
treec6544a1617125c74752eec3efcbc3d0cdce4abd7
parent2545e12da4281f859c7b41b9681db15668e7f44d
drm/mediatek: Ensure bridge disable happends before suspend

Make sure bridge_disable will be called before suspend by calling
drm_mode_config_helper_suspend() in .prepare callback.

Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220629190545.478113-1-hsinyi@chromium.org/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_drv.c