Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: qcom: common: Add support to register rcg dfs in qcom_cc_really_probe

Add support to register the rcg dfs in qcom_cc_really_probe(). This
allows users to move the call from the probe function to static
properties.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250715-sm7635-clocks-v3-1-18f9faac4984@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Luca Weiss and committed by
Bjorn Andersson
b21b5b3a eb1af6ee

+12
+10
drivers/clk/qcom/common.c
··· 390 390 goto put_rpm; 391 391 } 392 392 393 + if (desc->driver_data && 394 + desc->driver_data->dfs_rcgs && 395 + desc->driver_data->num_dfs_rcgs) { 396 + ret = qcom_cc_register_rcg_dfs(regmap, 397 + desc->driver_data->dfs_rcgs, 398 + desc->driver_data->num_dfs_rcgs); 399 + if (ret) 400 + goto put_rpm; 401 + } 402 + 393 403 cc->rclks = rclks; 394 404 cc->num_rclks = num_clks; 395 405
+2
drivers/clk/qcom/common.h
··· 30 30 size_t num_alpha_plls; 31 31 u32 *clk_cbcrs; 32 32 size_t num_clk_cbcrs; 33 + const struct clk_rcg_dfs_data *dfs_rcgs; 34 + size_t num_dfs_rcgs; 33 35 void (*clk_regs_configure)(struct device *dev, struct regmap *regmap); 34 36 }; 35 37