summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUjwal Patel <ujwalp@codeaurora.org>2015-10-16 11:06:06 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:47:21 -0700
commita7bb6fa7cb02ef985331297c2d31ee6efdec888f (patch)
treea6785c4230d9e91e9b7edb774a5c1e6384571f94
parent885d494e6d473779feddd3a3f35c16852bb567cf (diff)
msm: mdss: fix incorrect fb_split reporting during ping-pong split
When ping-pong split mode is used, there is only 1 layer mixer is used. Thus fb_split should be 0. However, current implementation incorrectly reports fb_split which leads user-space to split layer into 2 pipes. But in low tier chips number of pipes are less and this leads to display boot-up failure. Fix this by sending lm_width as 0 when ping-pong split is used. Change-Id: Id7feb1a3fd1932e68bc910c7e7ecd3dcdf63cb5e Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_dsi_panel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_dsi_panel.c b/drivers/video/fbdev/msm/mdss_dsi_panel.c
index c473022580ed..a7f9a2cf38de 100644
--- a/drivers/video/fbdev/msm/mdss_dsi_panel.c
+++ b/drivers/video/fbdev/msm/mdss_dsi_panel.c
@@ -1539,7 +1539,8 @@ static int mdss_dsi_parse_topology_config(struct device_node *np,
pinfo->use_pingpong_split ? "yes" : "no");
}
- if ((timing->lm_widths[0] == 0) && (timing->lm_widths[1] == 0))
+ if (!pinfo->use_pingpong_split &&
+ (timing->lm_widths[0] == 0) && (timing->lm_widths[1] == 0))
timing->lm_widths[0] = pt->timing.xres;
data = of_get_property(np, "qcom,compression-mode", NULL);