From: Robert Chiras Date: Tue, 7 May 2019 07:41:03 +0000 (+0300) Subject: MLK-21647: drm/mxsfb: Turn off vblanks in disable X-Git-Tag: rel_imx_4.19.35_1.1.0~567 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=8c904c5c199f65947ba14901432ef17b6afb8ed9;p=linux.git MLK-21647: drm/mxsfb: Turn off vblanks in disable 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 Reviewed-by: Laurentiu Palcu --- diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c index c0814bb87b52..f5a42956b776 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c @@ -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; }