Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3f3c0a1 authored by Ujwal Patel's avatar Ujwal Patel
Browse files

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: default avatarUjwal Patel <ujwalp@codeaurora.org>
parent e45e33a0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1527,7 +1527,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);