summaryrefslogtreecommitdiff
path: root/drivers/interconnect/qcom/icc-rpm.h
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@linaro.org>2022-05-04 10:46:18 +0300
committerGeorgi Djakov <djakov@kernel.org>2022-05-04 10:46:18 +0300
commit97f7d384ac4fcadfc0fb83519be23ccd59b4250b (patch)
tree2a2d6d7cbbbb3268b5831c5b1adb580884a23d84 /drivers/interconnect/qcom/icc-rpm.h
parent65fac3b3493f74eed6a7dcbc1835c1549b70f167 (diff)
downloadlinux-97f7d384ac4fcadfc0fb83519be23ccd59b4250b.tar.xz
interconnect: qcom: icc-rpm: Cache every clock rate
The cached clock rate is used for all bus clocks, thus it has the assumption that all interconnect clock rates are always same, this causes trouble if we want to set different clock rates separately. This patch is to allocate a clock rate array to cache every clock rate. Signed-off-by: Leo Yan <leo.yan@linaro.org> Link: https://lore.kernel.org/r/20220416031029.693211-3-leo.yan@linaro.org Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'drivers/interconnect/qcom/icc-rpm.h')
-rw-r--r--drivers/interconnect/qcom/icc-rpm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/interconnect/qcom/icc-rpm.h b/drivers/interconnect/qcom/icc-rpm.h
index 4457fcc5b84c..f6c4ac960102 100644
--- a/drivers/interconnect/qcom/icc-rpm.h
+++ b/drivers/interconnect/qcom/icc-rpm.h
@@ -34,7 +34,7 @@ struct qcom_icc_provider {
enum qcom_icc_type type;
struct regmap *regmap;
unsigned int qos_offset;
- u64 bus_clk_rate;
+ u64 *bus_clk_rate;
struct clk_bulk_data bus_clks[];
};