From patchwork Tue Sep 14 02:55:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 510908 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1137211jao; Mon, 13 Sep 2021 19:56:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgDSkqdTAxeOKjj9JFB380dNAjtm66vh+u7fDIxq7hfvmDz7kNJ7Gg5lKdKDnZaOtvForM X-Received: by 2002:a6b:2c45:: with SMTP id s66mr11961686ios.213.1631588168512; Mon, 13 Sep 2021 19:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631588168; cv=none; d=google.com; s=arc-20160816; b=Q7P/eMxIQegoCzy6ABRgjSHaXv9saRhEqUl+PY5E1WxfCJ+lcrUG+K4DN7Wpwe5YWW tcKpWhP5BndlnWyXQhF1V3jljRbDusqqip0CDdMwZ2PvMu3bx5ZboKiiQEQrLpJIN9N/ 9Bnj14MnZqlzcubeLzVHSz+OVfzj/33XdWHtEhsB6EPKFalR6vfcZTfhqZwPb33sdwa8 wFhI4S9I8Ypial6wa901LUHQ/nB+2IMkSa2MWdhTkQsWoa6KidYI3ak7mVxqcvS0loa/ kuUH6n1psygM00xzYheNl4PKr/QsfzVJzJF7TI2wQ8z4VDNVK/3UPZ2QbV/5f5RebmU1 OyVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=Dn3xckHSVXxqG47sII5jEqzc6vxhCTbWGe5zWY1u2no=; b=pOlEWJ1DwfecN+k0pa36ou6hXQGaxtoR03tDsfQ4FY2WoeUMRxvQqk9PVyjJv9S7FS LFOlcQR4dN1akdIPJOOnz8JTM/njN4gSIYm32DmvfHq2Ggk3DLNeI9J7UpV6dWbs9SuH D1mg+VcRlWj2MgeGNucDzVd1pZ99cAXfnLSBCeQTboHkYUM7/erSQypuwpUYkddhlIoD u2jEkAXxTXzCd6z6S4cYbFJ1b6xoKG7JhByZm9kNr7aWLMLa1zkwDM9nSVZfeORU3L7T GDm0kgNnlPrTGubWAodP7pKhx8hdLN0BELEtYBOJNivgJiAW8ajvAR/X90IEd/sJsxRG GmiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JAr+HdDL; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si8884403ilj.3.2021.09.13.19.56.08; Mon, 13 Sep 2021 19:56:08 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JAr+HdDL; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238198AbhINC5X (ORCPT + 6 others); Mon, 13 Sep 2021 22:57:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238000AbhINC5V (ORCPT ); Mon, 13 Sep 2021 22:57:21 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D994C061760 for ; Mon, 13 Sep 2021 19:56:04 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id k24so11317822pgh.8 for ; Mon, 13 Sep 2021 19:56:04 -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=Dn3xckHSVXxqG47sII5jEqzc6vxhCTbWGe5zWY1u2no=; b=JAr+HdDLsqwG1b4VQlMVSfDoeeLd+Ze/oCZkN2jLWc+Mqp63OZoC7P4zLxauacTJIH 6/lGImirLkQ659hQ+pfxFXLAQZz7LdubpUHB25KYMrUYPmgAijzlOxS0EFt5EOztXXFu JGKpjMHSajuBVQ8EKMTDy+zmdwTNAOQ8dyv0wAtxjNPgDMk7K0jxyJBscK1+ylxtj3RS 3Dx9ksgKIbu1PT7R6E7lDvHg/O7KOEOHnCXUPufe8L9FzJp3c9/4CeQIOXJjlR/0pprZ szEZeqRPhHyPqJmfIju8BGVrFTCSn/kNHquDhnCJ44SZ719ErSeUOJWvfHeD5Hde7ByU gHRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Dn3xckHSVXxqG47sII5jEqzc6vxhCTbWGe5zWY1u2no=; b=iT2Sky2PqQBCs2HBkNnosi3bqWov2xMi08F1xqAzQ0US3Qs4yCSpqMg/YPGRPG24Dq RD06U7r5hEsC0HlZKFSMbS/4UawQEEpScnPu4VAusd22Pys/sQoKS6qJhDxGcuGNJcBe cyJ3os+LZ1C3kusJ0VsyUJ2VOKZbikygiV71ThkLD7lUxKyJhopDISfBb3VtJCXF6eKn z+2QGHGMx1I3Rk8fLCnYBEdu9gLlGUkGqRcdXryeV3OtW+ilm0oZS2hMFnHsqynLrj8x EKy+ExSSTGBupVKp63LgyLvG54FT3TO9o48d1UgIjDkUXXIpnvW7EG5VSPbAWsW60gJr V3TQ== X-Gm-Message-State: AOAM530rapxzhGcFTFsNIEauVsR5GX1t1FEa0tkicSqoly/jDExdU88X PIKoJpcTSIpgdR85usRsJ1s8Uw== X-Received: by 2002:a05:6a00:22cd:b0:43c:9b41:e650 with SMTP id f13-20020a056a0022cd00b0043c9b41e650mr2553141pfj.60.1631588164108; Mon, 13 Sep 2021 19:56:04 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id r13sm9622654pgl.90.2021.09.13.19.56.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 19:56:03 -0700 (PDT) From: Shawn Guo To: Stephen Boyd Cc: Rob Herring , Bjorn Andersson , Loic Poulain , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH 1/3] clk: qcom: smd-rpm: Add rate hooks for clk_smd_rpm_branch_ops Date: Tue, 14 Sep 2021 10:55:52 +0800 Message-Id: <20210914025554.5686-2-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210914025554.5686-1-shawn.guo@linaro.org> References: <20210914025554.5686-1-shawn.guo@linaro.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On QCM2290 platform, the clock xo_board runs at 38400000, while the child clock bi_tcxo needs to run at 19200000. That said, clk_smd_rpm_branch_ops needs the capability of setting rate. Add rate hooks into clk_smd_rpm_branch_ops to make it possible. Signed-off-by: Shawn Guo --- drivers/clk/qcom/clk-smd-rpm.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 Signed-off-by: Shawn Guo diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 66d7807ee38e..2380e45b6247 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -416,6 +416,9 @@ static const struct clk_ops clk_smd_rpm_ops = { static const struct clk_ops clk_smd_rpm_branch_ops = { .prepare = clk_smd_rpm_prepare, .unprepare = clk_smd_rpm_unprepare, + .set_rate = clk_smd_rpm_set_rate, + .round_rate = clk_smd_rpm_round_rate, + .recalc_rate = clk_smd_rpm_recalc_rate, }; DEFINE_CLK_SMD_RPM(msm8916, pcnoc_clk, pcnoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 0);