[<prev] [next>] [day] [month] [year] [list]
Message-Id: <0e5b1635470b06924a0bc00ee1f4791602285ca5.1498744799.git-series.kieran.bingham+renesas@ideasonboard.com>
Date: Thu, 29 Jun 2017 15:02:55 +0100
From: Kieran Bingham <kieran.bingham+renesas@...asonboard.com>
To: linux-renesas-soc@...r.kernel.org, linux-media@...r.kernel.org,
dri-devel@...ts.freedesktop.org, laurent.pinchart@...asonboard.com
Cc: Kieran Bingham <kieran.bingham+renesas@...asonboard.com>,
David Airlie <airlied@...ux.ie>,
linux-kernel@...r.kernel.org (open list)
Subject: [PATCH v1 1/2] drm: rcar-du: Enable the FRM interrupt for vblank
The rcar_du_crtc_{enable,disable}_vblank functions are configured to
control the VBE interrupt event.
The implementation of interlaced support in the rcar-du changes the
required behavior such that vblanks are handled on frame end events, but
does not update the enable register to reflect this.
Enable the FRM interrupt in the DIER register using the FRE bit.
Fixes: 906eff7fcada ("drm: rcar-du: Implement support for interlaced
modes")
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@...asonboard.com>
---
drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
index 345eff72f581..9f53a8243941 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
@@ -620,7 +620,7 @@ static int rcar_du_crtc_enable_vblank(struct drm_crtc *crtc)
struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc);
rcar_du_crtc_write(rcrtc, DSRCR, DSRCR_VBCL);
- rcar_du_crtc_set(rcrtc, DIER, DIER_VBE);
+ rcar_du_crtc_set(rcrtc, DIER, DIER_FRE);
return 0;
}
@@ -629,7 +629,7 @@ static void rcar_du_crtc_disable_vblank(struct drm_crtc *crtc)
{
struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc);
- rcar_du_crtc_clr(rcrtc, DIER, DIER_VBE);
+ rcar_du_crtc_clr(rcrtc, DIER, DIER_FRE);
}
static const struct drm_crtc_funcs crtc_funcs = {
--
git-series 0.9.1
Powered by blists - more mailing lists