Skip to content

Commit

Permalink
clk: qcom: gdsc: Bump parent usage count when GDSC is found enabled
Browse files Browse the repository at this point in the history
When a GDSC is found to be enabled at boot the pm_runtime state will
be unbalanced as the GDSC is later turned off. Fix this by increasing
the usage counter on the power-domain, in line with how we handled the
regulator state.

Fixes: 1b77183 ("clk: qcom: gdsc: enable optional power domain support")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
  • Loading branch information
andersson committed Jun 6, 2022
1 parent a9b153b commit 260424c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/clk/qcom/gdsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ static int gdsc_init(struct gdsc *sc)
return ret;
}

/* ...and the power-domain */
gdsc_pm_runtime_get(sc);

/*
* Votable GDSCs can be ON due to Vote from other masters.
* If a Votable GDSC is ON, make sure we have a Vote.
Expand Down

0 comments on commit 260424c

Please sign in to comment.