drm/sti: set CRTC modesetting parameters
authorbenjamin.gaignard@linaro.org <benjamin.gaignard@linaro.org>
Thu, 7 Jan 2016 13:30:39 +0000 (14:30 +0100)
committerVincent Abriou <vincent.abriou@st.com>
Fri, 26 Feb 2016 09:03:56 +0000 (10:03 +0100)
Set CRTC modesetting parameters to avoid warnings in atomic mode.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: Vincent Abriou <vincent.abriou@st.com>
drivers/gpu/drm/sti/sti_crtc.c

index de11c7c..505620c 100644 (file)
@@ -56,6 +56,7 @@ static bool sti_crtc_mode_fixup(struct drm_crtc *crtc,
                                struct drm_display_mode *adjusted_mode)
 {
        /* accept the provided drm_display_mode, do not fix it up */
+       drm_mode_set_crtcinfo(adjusted_mode, CRTC_INTERLACE_HALVE_V);
        return true;
 }