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

Commit 6156e7d8 authored by Krishna Manikandan's avatar Krishna Manikandan Committed by Abhijith Desai
Browse files

msm: mdss: check for split display enable in multiple displays



Considers DSI0 and DSI1 as separate displays even if
split display is enabled. So the number of displays
are calculated as 2 whereas the driver considers this
as a single display. This causes MDP clocks to remain
ON. This change corrects number of displays calculated
by checking for split display.

Change-Id: Ie0d3dbbcb93cc86b88a8b903fd1f7ccd89a8a871
Signed-off-by: default avatarKrishna Srinivas <krisrini@codeaurora.org>
Signed-off-by: default avatarKrishna Manikandan <mkrishn@codeaurora.org>
Signed-off-by: default avatarAbhijith Desai <desaia@codeaurora.org>
parent 1f9bf6a1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2882,11 +2882,9 @@ static int mdss_mdp_probe(struct platform_device *pdev)
		MDSS_MDP_REG_SPLIT_DISPLAY_EN);
	mdata->splash_intf_sel = intf_sel;
	mdata->splash_split_disp = split_display;

	if (intf_sel != 0) {
		for (i = 0; i < 4; i++)
			if ((intf_sel >> i*8) & 0x000000FF)
				num_of_display_on++;
			num_of_display_on += ((intf_sel >> i*8) & 0x000000FF);

		/*
		 * For split display enabled - DSI0, DSI1 interfaces are