Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1513936 > unrolled thread

[PATCH v9 3/3] clk: qcom: Always add factor clock for xo clocks

Started byGeorgi Djakov <georgi.djakov@linaro.org>
First post2016-11-02 17:00 +0100
Last post2016-11-11 01:50 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v9 3/3] clk: qcom: Always add factor clock for xo clocks Georgi Djakov <georgi.djakov@linaro.org> - 2016-11-02 17:00 +0100
    Re: [PATCH v9 3/3] clk: qcom: Always add factor clock for xo clocks Stephen Boyd <sboyd@codeaurora.org> - 2016-11-11 01:50 +0100

#1513936 — [PATCH v9 3/3] clk: qcom: Always add factor clock for xo clocks

FromGeorgi Djakov <georgi.djakov@linaro.org>
Date2016-11-02 17:00 +0100
Subject[PATCH v9 3/3] clk: qcom: Always add factor clock for xo clocks
Message-ID<sz67f-8aH-1@gated-at.bofh.it>
Currently the RPM/RPM-SMD clock drivers do not register the xo clocks,
so we should always add factor clock. When we later add xo clocks support
into the drivers, we should update this function to skip registration.
By doing so we avoid any DT dependencies.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
---
 drivers/clk/qcom/common.c | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/drivers/clk/qcom/common.c b/drivers/clk/qcom/common.c
index fffcbaf0fba7..27566a0098ca 100644
--- a/drivers/clk/qcom/common.c
+++ b/drivers/clk/qcom/common.c
@@ -153,15 +153,12 @@ int qcom_cc_register_board_clk(struct device *dev, const char *path,
 			       const char *name, unsigned long rate)
 {
 	bool add_factor = true;
-	struct device_node *node;
-
-	/* The RPM clock driver will add the factor clock if present */
-	if (IS_ENABLED(CONFIG_QCOM_RPMCC)) {
-		node = of_find_compatible_node(NULL, NULL, "qcom,rpmcc");
-		if (of_device_is_available(node))
-			add_factor = false;
-		of_node_put(node);
-	}
+
+	/*
+	 * TODO: The RPM clock driver currently does not support the xo clock.
+	 * When xo is added to the RPM clock driver, we should change this
+	 * function to skip registration of xo factor clocks.
+	 */
 
 	return _qcom_cc_register_board_clk(dev, path, name, rate, add_factor);
 }

[toc] | [next] | [standalone]


#1519485

FromStephen Boyd <sboyd@codeaurora.org>
Date2016-11-11 01:50 +0100
Message-ID<sC8cx-5r6-1@gated-at.bofh.it>
In reply to#1513936
On 11/02, Georgi Djakov wrote:
> Currently the RPM/RPM-SMD clock drivers do not register the xo clocks,
> so we should always add factor clock. When we later add xo clocks support
> into the drivers, we should update this function to skip registration.
> By doing so we avoid any DT dependencies.
> 
> Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
> ---

Applied to clk-qcom-rpm and merged into clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web