clk: qcom: gdsc: add collapse-bit helper
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 20 May 2022 10:09:46 +0000 (12:09 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 26 Jun 2022 03:38:02 +0000 (22:38 -0500)
commite73cb8527c597598599119fcd9c7d1752d9e9fd7
treedc8d36775582771a86e92cf72955c454040e346d
parentc4f40351901a10cd662ac2c081396d8fb04f584d
clk: qcom: gdsc: add collapse-bit helper

Add a helper for updating the SW_COLLAPSE bit during initialisation and
state updates.

Note that the update during initialisation was relying on the
SW_COLLAPSE bit not having been set earlier rather than passing in zero
explicitly to clear the collapse vote.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220520100948.19622-2-johan+linaro@kernel.org
drivers/clk/qcom/gdsc.c