Commit 56e4b1e1 authored by Bibby Hsieh's avatar Bibby Hsieh Committed by CK Hu

drm/mediatek: clear IRQ status before enable OVL interrupt

To make sure that the first vblank IRQ after enabling
vblank isn't too short or immediate, we have to clear
the IRQ status before enable OVL interrupt.
Signed-off-by: default avatarBibby Hsieh <bibby.hsieh@mediatek.com>
Acked-by: default avatarCK Hu <ck.hu@mediatek.com>
parent f752fff6
......@@ -80,6 +80,7 @@ static void mtk_ovl_enable_vblank(struct mtk_ddp_comp *comp,
ddp_comp);
priv->crtc = crtc;
writel(0x0, comp->regs + DISP_REG_OVL_INTSTA);
writel_relaxed(OVL_FME_CPL_INT, comp->regs + DISP_REG_OVL_INTEN);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment