clk: qcom: clk-krait: add apq/ipq8064 errata workaround
authorAnsuel Smith <ansuelsmth@gmail.com>
Sat, 30 Apr 2022 05:44:58 +0000 (07:44 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 27 Jun 2022 20:41:37 +0000 (15:41 -0500)
commit898d0d6483a9360f1968e0a900465c1fa152a4a9
tree579e7d76756db7919856565faaa52e590e18587d
parentdf83d2c9e72910416f650ade1e07cc314ff02731
clk: qcom: clk-krait: add apq/ipq8064 errata workaround

Add apq/ipq8064 errata workaround where the sec_src clock gating needs to
be disabled during switching. krait-cc compatible is not enough to
handle this and limit this workaround to apq/ipq8064. We check machine
compatible to handle this.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220430054458.31321-4-ansuelsmth@gmail.com
drivers/clk/qcom/clk-krait.c
drivers/clk/qcom/clk-krait.h
drivers/clk/qcom/krait-cc.c