From a7bb6fa7cb02ef985331297c2d31ee6efdec888f Mon Sep 17 00:00:00 2001 From: Ujwal Patel Date: Fri, 16 Oct 2015 11:06:06 -0700 Subject: 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 --- drivers/video/fbdev/msm/mdss_dsi_panel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3