Merge branch 'for-upstream/hdlcd' of git://linux-arm.org/linux-ld into drm-fixes
authorDave Airlie <airlied@redhat.com>
Thu, 24 Nov 2016 01:17:44 +0000 (11:17 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 24 Nov 2016 01:17:44 +0000 (11:17 +1000)
A late issue discovered by Russell King while testing his setup on Juno.

* 'for-upstream/hdlcd' of git://linux-arm.org/linux-ld:
  drm/arm: hdlcd: fix plane base address update

drivers/gpu/drm/arm/hdlcd_crtc.c

index 48019ae..28341b3 100644 (file)
@@ -150,15 +150,14 @@ static void hdlcd_crtc_enable(struct drm_crtc *crtc)
        clk_prepare_enable(hdlcd->clk);
        hdlcd_crtc_mode_set_nofb(crtc);
        hdlcd_write(hdlcd, HDLCD_REG_COMMAND, 1);
+       drm_crtc_vblank_on(crtc);
 }
 
 static void hdlcd_crtc_disable(struct drm_crtc *crtc)
 {
        struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc);
 
-       if (!crtc->state->active)
-               return;
-
+       drm_crtc_vblank_off(crtc);
        hdlcd_write(hdlcd, HDLCD_REG_COMMAND, 0);
        clk_disable_unprepare(hdlcd->clk);
 }