From: Giulio Benetti Date: Tue, 16 Jan 2018 16:43:48 +0000 (+0100) Subject: sunxi: Fix display timing flags X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=3900b45125dea0476c03f413ec80201865bfde70;p=u-boot.git sunxi: Fix display timing flags flags member of struct timing was not initialized, this took to unpredictable behaviour of display flags, such DISPLAY_FLAGS_HSYNC_HIGH instead of _LOW etc. Init timing->flags = 0 Signed-off-by: Giulio Benetti Acked-by: Maxime Ripard Reviewed-by: Jagan Teki --- diff --git a/drivers/video/sunxi/sunxi_display.c b/drivers/video/sunxi/sunxi_display.c index 0630289c0a..f191ef16c6 100644 --- a/drivers/video/sunxi/sunxi_display.c +++ b/drivers/video/sunxi/sunxi_display.c @@ -625,6 +625,8 @@ static void sunxi_ctfb_mode_to_display_timing(const struct ctfb_res_modes *mode, timing->vback_porch.typ = mode->upper_margin; timing->vsync_len.typ = mode->vsync_len; + timing->flags = 0; + if (mode->sync & FB_SYNC_HOR_HIGH_ACT) timing->flags |= DISPLAY_FLAGS_HSYNC_HIGH; else