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

Commit 6050f0ce authored by Ritesh Kumar's avatar Ritesh Kumar Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/dsi-staging: Add pre/post clk off/on callback path



Add pre clk off and post clk off sequence while disabling dsi
link clk and pre clk on and post clk on sequence while enabling
dsi link clk. This fixes the warning logs while switching the
dsi clk via sysfs interface.

Change-Id: Icb751dc369bed1119506275e33f30b3ed3a713b3
Signed-off-by: default avatarRitesh Kumar <riteshk@codeaurora.org>
parent 043fab3c
Loading
Loading
Loading
Loading
+6 −14
Original line number Diff line number Diff line
@@ -1278,23 +1278,15 @@ int dsi_display_link_clk_force_update(void *client)
		goto error;
	}

	rc = dsi_display_link_clk_disable(l_clks,
			(DSI_LINK_LP_CLK | DSI_LINK_HS_CLK),
			mngr->dsi_ctrl_count, mngr->master_ndx);
	if (rc) {
		pr_err("%s, failed to stop link clk, rc = %d\n",
			__func__, rc);
	rc = dsi_clk_update_link_clk_state(mngr, l_clks, (DSI_LINK_LP_CLK |
				DSI_LINK_HS_CLK), DSI_CLK_OFF, false);
	if (rc)
		goto error;
	}

	rc = dsi_display_link_clk_enable(l_clks,
			(DSI_LINK_LP_CLK | DSI_LINK_HS_CLK),
			mngr->dsi_ctrl_count, mngr->master_ndx);
	if (rc) {
		pr_err("%s, failed to start link clk rc= %d\n",
			__func__, rc);
	rc = dsi_clk_update_link_clk_state(mngr, l_clks, (DSI_LINK_LP_CLK |
				DSI_LINK_HS_CLK), DSI_CLK_ON, true);
	if (rc)
		goto error;
	}

error:
	mutex_unlock(&mngr->clk_mutex);