diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2021-10-29 20:33:45 +0800 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2022-02-14 17:24:19 +0800 |
commit | 06fcd4cc34e8540e2e334115b99a395f43429155 (patch) | |
tree | b6e74e357cda54f27448e3a4c20156f2042d3d94 | |
parent | 754e0b0e35608ed5206d6a67a791563c631cec07 (diff) |
DEBUG: clk: qcom: smd-rpm: Keep an active vote on CXO
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r-- | drivers/clk/qcom/clk-smd-rpm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index ea28e45ca371..26c70c2fbd26 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -4,6 +4,7 @@ * Copyright (c) 2014, The Linux Foundation. All rights reserved. */ +#include <linux/clk.h> #include <linux/clk-provider.h> #include <linux/err.h> #include <linux/export.h> @@ -1205,6 +1206,12 @@ static int rpm_smd_clk_probe(struct platform_device *pdev) if (ret) goto err; + /* + * Keep an active vote on CXO in case no other driver + * votes for it. + */ + clk_prepare_enable(sdm660_bi_tcxo_a.hw.clk); + return 0; err: dev_err(&pdev->dev, "Error registering SMD clock driver (%d)\n", ret); |