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

Commit 54ba41b1 authored by Venkata Prahlad Valluru's avatar Venkata Prahlad Valluru Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: mdp: fix parsing total number of displays



Interpret each interface of INTF_SEL register as 1
instead of respective byte value.

Change-Id: I475d9d7770ccfb444264d872f7b279b518e6c1b3
Signed-off-by: default avatarVenkata Prahlad Valluru <vvalluru@codeaurora.org>
parent f1a61bc4
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/*
 * MDSS MDP Interface (used by framebuffer core)
 *
 * Copyright (c) 2007-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2007-2019, The Linux Foundation. All rights reserved.
 * Copyright (C) 2007 Google Incorporated
 *
 * This software is licensed under the terms of the GNU General Public
@@ -3117,7 +3117,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);
			num_of_display_on +=
				(((intf_sel >> i*8) & 0x000000FF) ? 1 : 0);

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