drm/mediatek: disable all the planes in atomic_disable
authorBibby Hsieh <bibby.hsieh@mediatek.com>
Tue, 10 Dec 2019 05:05:23 +0000 (13:05 +0800)
committerCK Hu <ck.hu@mediatek.com>
Fri, 20 Dec 2019 08:19:12 +0000 (16:19 +0800)
Under shadow register case, we do not disable all the plane before
disable all the hardwares. Fix it.

Fixes: 9dc84e98a31f ("drm/mediatek: add shadow register support")
Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_drm_crtc.c

index 478a51ba38914605b0d5c31dd4231dbb1b084954..ecf3f0976a88e69e819f2f0916903eba629182a4 100644 (file)
@@ -540,6 +540,7 @@ static void mtk_drm_crtc_atomic_disable(struct drm_crtc *crtc,
        }
        mtk_crtc->pending_planes = true;
 
+       mtk_drm_crtc_hw_config(mtk_crtc);
        /* Wait for planes to be disabled */
        drm_crtc_wait_one_vblank(crtc);