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

Commit 9463eead authored by Aravind Venkateswaran's avatar Aravind Venkateswaran
Browse files

msm: mdss: hold mdp clock ref count when restoring ctl path



MDP control path needs to be restored whenever MDSS GDSC is turned
back on while exiting the utlra-low power state (ULPS). Hold a
reference count for the MDP clocks to ensure that there is no
unclocked register access.

Change-Id: Ia2d299d9db9c23e4c9171cbec8e376908046494b
Signed-off-by: default avatarAravind Venkateswaran <aravindh@codeaurora.org>
parent 4e5e1ddf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1725,11 +1725,13 @@ void mdss_mdp_ctl_restore(struct mdss_mdp_ctl *ctl)
{
	u32 temp;

	mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_ON, false);
	temp = readl_relaxed(ctl->mdata->mdp_base +
		MDSS_MDP_REG_DISP_INTF_SEL);
	temp |= (ctl->intf_type << ((ctl->intf_num - MDSS_MDP_INTF0) * 8));
	writel_relaxed(temp, ctl->mdata->mdp_base +
		MDSS_MDP_REG_DISP_INTF_SEL);
	mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_OFF, false);
}

static int mdss_mdp_ctl_start_sub(struct mdss_mdp_ctl *ctl, bool handoff)