]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/stm: ltdc: fix data enable polarity
authorYannick Fertré <yannick.fertre@st.com>
Fri, 29 Mar 2019 15:50:20 +0000 (16:50 +0100)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Wed, 24 Apr 2019 11:51:27 +0000 (13:51 +0200)
Wrong DISPLAY_FLAGS used to set the data enable polarity.

Signed-off-by: Yannick Fertré <yannick.fertre@st.com>
Acked-by: Philippe Cornu <philippe.cornu@st.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1553874620-31468-1-git-send-email-yannick.fertre@st.com
drivers/gpu/drm/stm/ltdc.c

index e92f660fedd3835cefcc189228c299049886ad35..02f67fa9881f75f686b658f424a643882fcc22aa 100644 (file)
@@ -555,7 +555,7 @@ static void ltdc_crtc_mode_set_nofb(struct drm_crtc *crtc)
        if (vm.flags & DISPLAY_FLAGS_VSYNC_HIGH)
                val |= GCR_VSPOL;
 
-       if (vm.flags & DISPLAY_FLAGS_DE_HIGH)
+       if (vm.flags & DISPLAY_FLAGS_DE_LOW)
                val |= GCR_DEPOL;
 
        if (vm.flags & DISPLAY_FLAGS_PIXDATA_NEGEDGE)