summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rcar-du
diff options
context:
space:
mode:
authorLaurent Pinchart2017-07-10 22:46:39 +0200
committerLaurent Pinchart2017-08-03 15:17:26 +0200
commitcbbb90b0c084d7dfb2ed8e3fecf8df200fbdd2a0 (patch)
tree885d7d402cbd8169fef8fdbe59c9a0124af84701 /drivers/gpu/drm/rcar-du
parentdrm: rcar-du: Add HDMI outputs to R8A7796 device description (diff)
downloadkernel-qcow2-linux-cbbb90b0c084d7dfb2ed8e3fecf8df200fbdd2a0.tar.gz
kernel-qcow2-linux-cbbb90b0c084d7dfb2ed8e3fecf8df200fbdd2a0.tar.xz
kernel-qcow2-linux-cbbb90b0c084d7dfb2ed8e3fecf8df200fbdd2a0.zip
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 <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Diffstat (limited to 'drivers/gpu/drm/rcar-du')
-rw-r--r--drivers/gpu/drm/rcar-du/rcar_du_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
index 98cf446391dc..17fd1cd5212c 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)