[PATCH v2 4/5] clk: qcom: cbf-8996: add clk_sync_state() call
From: Brian Masney
Date: Tue Jun 16 2026 - 17:10:39 EST
This driver doesn't use qcom_cc_probe() in qcom/common.c, so it
shouldn't use the newly introduced qcom_cc_sync_state(). Let's go ahead
and add a driver-specific sync state call.
Signed-off-by: Brian Masney <bmasney@xxxxxxxxxx>
---
drivers/clk/qcom/clk-cbf-8996.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/qcom/clk-cbf-8996.c b/drivers/clk/qcom/clk-cbf-8996.c
index 0b40ed601f9a..020d511072e2 100644
--- a/drivers/clk/qcom/clk-cbf-8996.c
+++ b/drivers/clk/qcom/clk-cbf-8996.c
@@ -249,7 +249,11 @@ static void qcom_msm8996_cbf_icc_remove(struct platform_device *pdev)
icc_clk_unregister(provider);
}
-#define qcom_msm8996_cbf_icc_sync_state icc_sync_state
+static void qcom_msm8996_cbf_icc_sync_state(struct device *dev)
+{
+ icc_sync_state(dev);
+ clk_sync_state(dev);
+}
#else
static int qcom_msm8996_cbf_icc_register(struct platform_device *pdev, struct clk_hw *cbf_hw)
{
@@ -258,7 +262,7 @@ static int qcom_msm8996_cbf_icc_register(struct platform_device *pdev, struct c
return 0;
}
#define qcom_msm8996_cbf_icc_remove(pdev) { }
-#define qcom_msm8996_cbf_icc_sync_state NULL
+#define qcom_msm8996_cbf_icc_sync_state clk_sync_state
#endif
static int qcom_msm8996_cbf_probe(struct platform_device *pdev)
--
2.54.0