MLK-21647: drm/mxsfb: Turn off vblanks in disable
authorRobert Chiras <robert.chiras@nxp.com>
Tue, 7 May 2019 07:41:03 +0000 (10:41 +0300)
committerRobert Chiras <robert.chiras@nxp.com>
Tue, 7 May 2019 08:45:52 +0000 (11:45 +0300)
The calls to drm_crtc_vblank_on/off should be paired into pipe_enable
and pipe_disable callbacks.
This patch adds the call to drm_crtc_vblank_off in pipe_disable callback.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/mxsfb/mxsfb_drv.c

index c0814bb..f5a4295 100644 (file)
@@ -363,6 +363,8 @@ static void mxsfb_pipe_disable(struct drm_simple_display_pipe *pipe)
        }
        spin_unlock_irq(&drm->event_lock);
 
+       drm_crtc_vblank_off(&mxsfb->pipe.crtc);
+
        if (mxsfb->connector != &mxsfb->panel_connector)
                mxsfb->connector = NULL;
 }