drm/mediatek: clear IRQ status before enable OVL interrupt
authorBibby Hsieh <bibby.hsieh@mediatek.com>
Thu, 29 Sep 2016 03:29:49 +0000 (11:29 +0800)
committerCK Hu <ck.hu@mediatek.com>
Wed, 19 Oct 2016 01:06:12 +0000 (09:06 +0800)
commit56e4b1e183555c74097fa012f1606b22223f027b
tree680f968f614f327ea6e07ca07d19d7d5fba1a546
parentf752fff611b99f5679224f3990a1f531ea64b1ec
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: Bibby Hsieh <bibby.hsieh@mediatek.com>
Acked-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_disp_ovl.c