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

Commit 7b1311c5 authored by Camus Wong's avatar Camus Wong Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: mdp: Fix the intf count



In MDP_DISP_INTF_SEL register, it uses different value to represent the
display type. It cannot assume enabled intf is always 1.

CRs-Fixed: 1078202
Change-Id: I73e36f9bb369f3200b99f66fb5231a0afe389913
Signed-off-by: default avatarCamus Wong <camusw@codeaurora.org>
parent 38bd39cf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2727,7 +2727,8 @@ static int mdss_mdp_probe(struct platform_device *pdev)
		MDSS_MDP_REG_SPLIT_DISPLAY_EN);
	if (intf_sel != 0) {
		for (i = 0; i < 4; i++)
			num_of_display_on += ((intf_sel >> i*8) & 0x000000FF);
			if ((intf_sel >> i*8) & 0x000000FF)
				num_of_display_on++;

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