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

Commit 71259362 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: qcom: Add additional delay while enabling votable clocks"

parents c643d9c2 a14e4b54
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -83,6 +83,15 @@ static int clk_branch_wait(const struct clk_branch *br, bool enabling,
	if (clk_branch_in_hwcg_mode(br))
		return 0;

	/*
	 * Some of the BRANCH_VOTED clocks could be controlled by other
	 * masters via voting registers, and would require to add delay
	 * polling for the status bit to allow previous clk_disable
	 * by the GDS controller to go through.
	 */
	if (enabling && voted)
		udelay(5);

	if (br->halt_check == BRANCH_HALT_DELAY || (!enabling && voted)) {
		udelay(10);
	} else if (br->halt_check == BRANCH_HALT_ENABLE ||