From d62fb816933cdddfbf452f184a9826f5883971b5 Mon Sep 17 00:00:00 2001 From: zhaoyuan Date: Wed, 17 May 2017 18:00:12 +0800 Subject: [PATCH] msm: mdss: do not update polarity for DSI interface Polarity should be updated based on HDMI resolution for HDMI display. However, DSI interface does not need to update polarity. CRs-Fixed: 2046790 Change-Id: I4a30fcd7ebec70224accd2178c14bd37d2059f4e Signed-off-by: zhaoyuan --- drivers/video/fbdev/msm/mdss_mdp_intf_video.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/msm/mdss_mdp_intf_video.c b/drivers/video/fbdev/msm/mdss_mdp_intf_video.c index c31c0149866a..bdf6705ef597 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_intf_video.c +++ b/drivers/video/fbdev/msm/mdss_mdp_intf_video.c @@ -643,8 +643,13 @@ static int mdss_mdp_video_timegen_setup(struct mdss_mdp_ctl *ctl, display_hctl = (hsync_end_x << 16) | hsync_start_x; den_polarity = 0; - hsync_polarity = p->h_polarity; - vsync_polarity = p->v_polarity; + if (ctx->intf_type == MDSS_INTF_HDMI) { + hsync_polarity = p->h_polarity; + vsync_polarity = p->v_polarity; + } else { + hsync_polarity = 0; + vsync_polarity = 0; + } polarity_ctl = (den_polarity << 2) | /* DEN Polarity */ (vsync_polarity << 1) | /* VSYNC Polarity */ (hsync_polarity << 0); /* HSYNC Polarity */