Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1493144

Re: [PATCH 2/2] drm/mediatek: clear IRQ status before enable OVL interrupt

From CK Hu <ck.hu@mediatek.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] drm/mediatek: clear IRQ status before enable OVL interrupt
Date 2016-09-29 07:40 +0200
Message-ID <smCeB-8kt-5@gated-at.bofh.it> (permalink)
References <smAmt-7a6-1@gated-at.bofh.it> <smAmt-7a6-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Acked-by: CK Hu <ck.hu@mediatek.com>

On Thu, 2016-09-29 at 11:29 +0800, Bibby Hsieh wrote:
> 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>
> ---
>  drivers/gpu/drm/mediatek/mtk_disp_ovl.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c
> index 019b7ca..f75c5b5 100644
> --- a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c
> +++ b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c
> @@ -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);
>  }
>  

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] fix issue: vblank interrupts are never disabled  Bibby Hsieh <bibby.hsieh@mediatek.com> - 2016-09-29 05:40 +0200
  [PATCH 1/2] drm/mediatek: set vblank_disable_allowed to true Bibby Hsieh <bibby.hsieh@mediatek.com> - 2016-09-29 05:40 +0200
    Re: [PATCH 1/2] drm/mediatek: set vblank_disable_allowed to true CK Hu <ck.hu@mediatek.com> - 2016-09-29 07:40 +0200
  [PATCH 2/2] drm/mediatek: clear IRQ status before enable OVL interrupt Bibby Hsieh <bibby.hsieh@mediatek.com> - 2016-09-29 05:40 +0200
    Re: [PATCH 2/2] drm/mediatek: clear IRQ status before enable OVL  interrupt CK Hu <ck.hu@mediatek.com> - 2016-09-29 07:40 +0200
  Re: [PATCH 0/2] fix issue: vblank interrupts are never disabled Daniel Kurtz <djkurtz@chromium.org> - 2016-10-07 12:40 +0200

csiph-web