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

Commit dca9bd49 authored by Sachin Bhayare's avatar Sachin Bhayare Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: fix MDP3 clock refcount issue with splash disable



During probe MDP3 clocks are turned ON to detect the interface
type explicitly. If interface type is DSI_CMD than clocks were turned OFF.
When splash is disabled the interface type is not initialize. This
causes driver to leave the MDP3 clocks ON after probe for command panel.
Which results in unbalanced clock refcount in probe. This is preventing
XO shutdown and resulting in power regression.

Fix issue by turning OFF MDP3 clocks when interface type is
not initialized.

Change-Id: Ia4dade7d2d903016448459a738b92e3d4fdee88e
Signed-off-by: default avatarSachin Bhayare <sachin.bhayare@codeaurora.org>
parent 8b5bb77c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
 * Copyright (C) 2007 Google Incorporated
 *
 * This software is licensed under the terms of the GNU General Public
@@ -2778,7 +2778,7 @@ int mdp3_panel_get_intf_status(u32 disp_num, u32 intf_type)
	rc = (status == 0x180000) || (status == 0x080000);

	/* For Video mode panel do not disable clock */
	if (status == 0x80000) {
	if (!(status == 0x180000)) {
		if (mdp3_clk_enable(0, 0))
			pr_err("fail to turn off MDP core clks\n");
	}