clk: qcom: gdsc: Bump parent usage count when GDSC is found enabled
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 13 Jul 2022 21:28:18 +0000 (14:28 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 18 Jul 2022 21:35:48 +0000 (16:35 -0500)
commit41fff779d7948147f2440c4bb134cdf8b45b22d7
treeae4c021e18cd59da0a33106ac24dcffe38808383
parentb1ec8b53c9ae5fae33d60e9638d39ca5346b941b
clk: qcom: gdsc: Bump parent usage count when GDSC is found enabled

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: 1b771839de05 ("clk: qcom: gdsc: enable optional power domain support")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20220713212818.130277-1-bjorn.andersson@linaro.org
drivers/clk/qcom/gdsc.c