From patchwork Wed Nov 2 15:56:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 9409417 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C01E460721 for ; Wed, 2 Nov 2016 15:57:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1A302A406 for ; Wed, 2 Nov 2016 15:57:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A67072A41F; Wed, 2 Nov 2016 15:57:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C9FD2A406 for ; Wed, 2 Nov 2016 15:57:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753137AbcKBP50 (ORCPT ); Wed, 2 Nov 2016 11:57:26 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:37783 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756035AbcKBP5I (ORCPT ); Wed, 2 Nov 2016 11:57:08 -0400 Received: by mail-wm0-f50.google.com with SMTP id t79so46199419wmt.0 for ; Wed, 02 Nov 2016 08:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aEpiiifK5Tfbka3iuQQeQZVeJzyD872qoukev6qgfqw=; b=Hq+/uiStspE0tgOSILCjUEKenRJPEYxfhx1wbB5tzgVOsLo2bBaDNLUd4hx/txh4bA Ca0/jC4UUATHmV947lV12KNSoKS4EYr0WfpZ2nQtMoK5J/AAlOty9Y1Fv7vxRya2pbsu WeIK/kFUqJtksgWTX+yk8bDvEaWdqr9OvvFvw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aEpiiifK5Tfbka3iuQQeQZVeJzyD872qoukev6qgfqw=; b=m69EhtTzkh2JE4jmJY46rYZgui1hW2MsYTCXctPNP/ouy5ruizitm5b53eEmZNiQkb O/tRD5e9QeY7/x5NkLYQbNFWMKYSfQOb0vQIuE8AKVUwUGo3cxq7GNCwY7EGcmH4FkEU +RM18YWj8KKxoWYmNkIFgHHgn/uAWT8/JpGC315f9wOcKAzWnIe+rwnt0vUsbXOqqzab kSJ+Fa3V4eL04c0uzkf0lnrkvOhZSGXEfsx3ll2pvCQRqa7Bpr2FkoEpv+tS/F4SaohZ xEnDGkZ5nUwag45jD+1+ucIioGmMGhWUlA68TJIsoj41hzJg9lCgAi+2lBQdh3K5YcjU d5zA== X-Gm-Message-State: ABUngvcJQSyGrhA12x6fKzCzYL8WMmahzNOzUH+XECaWD5JTddTy8LjCMV44bT0l/BEF2Cvv X-Received: by 10.28.10.207 with SMTP id 198mr2820080wmk.2.1478102226763; Wed, 02 Nov 2016 08:57:06 -0700 (PDT) Received: from mms-0441.wifi.mm-sol.com ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id m194sm3991864wmg.11.2016.11.02.08.57.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Nov 2016 08:57:05 -0700 (PDT) From: Georgi Djakov To: sboyd@codeaurora.org, mturquette@baylibre.com Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, georgi.djakov@linaro.org Subject: [PATCH v9 3/3] clk: qcom: Always add factor clock for xo clocks Date: Wed, 2 Nov 2016 17:56:58 +0200 Message-Id: <20161102155658.32203-4-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161102155658.32203-1-georgi.djakov@linaro.org> References: <20161102155658.32203-1-georgi.djakov@linaro.org> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/clk/qcom/common.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-clk" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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); }