clk: qcom: mmcc-msm8998: Add hardware clockgating registers to some clks
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Thu, 14 Jan 2021 22:10:56 +0000 (23:10 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 8 Feb 2021 18:24:33 +0000 (10:24 -0800)
commitfa92f3b093d6ca624f42d444d5a206f8724b6bb3
tree69b223a0791f12c9c737302e3ad31a99fc8d50f3
parent292f75ecff07e8a07fe2e3e19b4b567d0b698842
clk: qcom: mmcc-msm8998: Add hardware clockgating registers to some clks

Hardware clock gating is supported on some of the clocks declared in
there: ignoring that it does exist may lead to unstabilities on some
firmwares.
Add the HWCG registers where applicable to stop potential crashes.

This was verified on a smartphone shipped with a recent MSM8998
firmware, which will experience random crashes without this change.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Link: https://lore.kernel.org/r/20210114221059.483390-9-angelogioacchino.delregno@somainline.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/mmcc-msm8998.c