From: Laurent Pinchart Date: Mon, 10 Jul 2017 20:46:39 +0000 (+0300) Subject: drm: rcar-du: Use the VBK interrupt for vblank events X-Git-Tag: v4.14-rc1~8^2~43^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbbb90b0c084d7dfb2ed8e3fecf8df200fbdd2a0;p=platform%2Fkernel%2Flinux-rpi3.git drm: rcar-du: Use the VBK interrupt for vblank events When implementing support for interlaced modes, the driver switched from reporting vblank events on the vertical blanking (VBK) interrupt to the frame end interrupt (FRM). This incorrectly divided the reported refresh rate by two. Fix it by moving back to the VBK interrupt. Fixes: 906eff7fcada ("drm: rcar-du: Implement support for interlaced modes") Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c index 98cf446..17fd1cd 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c @@ -698,7 +698,7 @@ static irqreturn_t rcar_du_crtc_irq(int irq, void *arg) status = rcar_du_crtc_read(rcrtc, DSSR); rcar_du_crtc_write(rcrtc, DSRCR, status & DSRCR_MASK); - if (status & DSSR_FRM) { + if (status & DSSR_VBK) { drm_crtc_handle_vblank(&rcrtc->crtc); if (rcdu->info->gen < 3)