Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp147189rwb; Mon, 28 Nov 2022 18:21:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf6z3Yc9B+0njEia2kuhVIppdndDQTL8SqlI/bKE8LIAGPvkV9ckAZ64WeaDUzRtOpYRHN3o X-Received: by 2002:aa7:cc04:0:b0:463:1a0c:4dd1 with SMTP id q4-20020aa7cc04000000b004631a0c4dd1mr41589707edt.137.1669688498757; Mon, 28 Nov 2022 18:21:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669688498; cv=none; d=google.com; s=arc-20160816; b=C9vzUIcpDnEsMprtdROI2STlylPL9Fqa678KX6C/DxKy6i/dtFpv/tfKNta88tpxRc vmn+dvecVUK7y58XRYX/1Ieh7MdPQUCM2ivbu6U5GsYf5IkYg7lB3ro6axFATmll2LzM DI+hOXtqBV6tMHl2ar1IyijY0iTUaof2eRjTBKKAOPcBEGYGBIUi56JeH0/ObnpEq6LG yggEP0nz6jH56iiIgyp+2suOrzoTxWS/ywcGDKcGjiyoNujTJsbTyYqkElNY6oo8yrlU TERUSTeU5H5Hrt9F9JyIpJyedEYeWSTnMr3BS0dqDcYoRrKcdaRefT+FA4Wk1VV454Va oU/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WMM7L0hXLXFUfKlNhgYF7NOBpwKqvN6Tf5K3J+8O/Uc=; b=lOZak2QYL/np4Z59TjUv+QCihIMfBTtvtVgkybz+f46EtiC3bPNScv6RRu2qz7N61J Vhva7tLiq6AGUN1N8+InRePQMzgnlDOD7sooXRXf8g3s4g08T9+dt2N9TauevaZwMyw7 eGEV5TEYZp5t9Q46QX9QRm9L/Q27heMJ7LAO4jclk4FSiup7AJseJ4Xuj5XGWM6UlzoQ 7gsWnkkW/sMgSNvw4UzBlqIDof1eBpKgt/PNm16ro1p7he/xDiYBZB7nI/NWCjh66QTt snOCM2pP5sTPgFlwhyVnqZoli0VzYqKMVIONsRZfpi+uoeLWepKEPMr0VGzNT5A6oSbF VoBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T8k72Mxd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a5085c3000000b00462f4ea167esi10317094edh.315.2022.11.28.18.21.19; Mon, 28 Nov 2022 18:21:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T8k72Mxd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S234952AbiK2By3 (ORCPT + 82 others); Mon, 28 Nov 2022 20:54:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234773AbiK2By2 (ORCPT ); Mon, 28 Nov 2022 20:54:28 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35CE63135D for ; Mon, 28 Nov 2022 17:54:27 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id e189so9075817iof.1 for ; Mon, 28 Nov 2022 17:54:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=WMM7L0hXLXFUfKlNhgYF7NOBpwKqvN6Tf5K3J+8O/Uc=; b=T8k72MxddQdscOHj6Io3D/OAp4GrC7Gna7f3l9dfpJ6TY7SxKZjBjnCJqc6saP9VMU o9fOEOkEmUtPkCzVQheZlimTTgpxuynrjQjZ/WFchxU6utIQcVcPv5EavSh8+fipxChU JvjBJsC2sff2IFgcv6pyDfv5+1jjnm82hTQzanFFreryRblha3TM/fuIpOoZEOjqn/51 ppv4YxgtVMD22chsxOYlEvXrW/cJd3qaAdCidEfBTGtI58G+TpL/FAYIiMD40AgAkz7a jbeVLFo5yTete2IN/73QDKVOtmQjGdAWsILoddNRc9deAf5K3tYiBwYSuA/X9s0uawea dHXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WMM7L0hXLXFUfKlNhgYF7NOBpwKqvN6Tf5K3J+8O/Uc=; b=OFf6kcdFtM+ALGP+OzLWUTJExbFpy6XZzO7JJAHRZwLpLzmVeB0L9bI5kp+fsUUIFp OOC3eQj3wRNjUt6rWoCdT2rnXbTv5L0dmIVAaZB5SbQZGJMrvJzysQdXH4J/C4V/e/HK Ry0QXPjsQT2r/vkWj5R0w/uUD3wNipEkNbdVqwypjg7hHmJuVqzkLhIcpU0fYbhqRpjI ynqg8p7Gc05yFzcoK2JtIeH7t6zfU8+NgSSVzyCcL5tv+TubI6RDGsHfULvq6YMy978A 9BuqBDgIGkCILkMmmosol1+zKRBF67hmKTH3gpHaZ+XafmtXowjWkYJjjmLuTc425LT2 iXDg== X-Gm-Message-State: ANoB5pmIeOdFOuZyQIUkeVyZjj87wmvenTg8cz6zF4zrWJ4/77TZqzgs VGim+MWrwgoJ4Y3KYuZMkwFlrA== X-Received: by 2002:a05:6638:603:b0:389:ef1f:2ee6 with SMTP id g3-20020a056638060300b00389ef1f2ee6mr323971jar.267.1669686866493; Mon, 28 Nov 2022 17:54:26 -0800 (PST) Received: from [172.22.22.4] ([98.61.227.136]) by smtp.googlemail.com with ESMTPSA id o17-20020a92a811000000b003030d8b3cb7sm1662850ilh.42.2022.11.28.17.54.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Nov 2022 17:54:25 -0800 (PST) Message-ID: <35be9c2d-63d4-01cf-b8d7-de3306d50e64@linaro.org> Date: Mon, 28 Nov 2022 19:54:25 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] clk: qcom: rpmh: add support for SM6350 rpmh IPA clock Content-Language: en-US To: Dmitry Baryshkov Cc: sboyd@kernel.org, mturquette@baylibre.com, andersson@kernel.org, konrad.dybcio@linaro.org, agross@kernel.org, Luca Weiss , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221129000047.697089-1-elder@linaro.org> From: Alex Elder In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/28/22 7:35 PM, Dmitry Baryshkov wrote: > On Tue, 29 Nov 2022 at 02:00, Alex Elder wrote: >> >> From: Luca Weiss >> >> The IPA core clock is required for SM6350. Define it. >> >> Signed-off-by: Luca Weiss >> --- >> drivers/clk/qcom/clk-rpmh.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c >> index 0471bab824642..6a5887aae21a4 100644 >> --- a/drivers/clk/qcom/clk-rpmh.c >> +++ b/drivers/clk/qcom/clk-rpmh.c >> @@ -603,6 +603,7 @@ static const struct clk_rpmh_desc clk_rpmh_sc7280 = { >> DEFINE_CLK_RPMH_VRM(sm6350, ln_bb_clk2, ln_bb_clk2_ao, "lnbclkg2", 4); >> DEFINE_CLK_RPMH_VRM(sm6350, ln_bb_clk3, ln_bb_clk3_ao, "lnbclkg3", 4); >> DEFINE_CLK_RPMH_ARC(sm6350, qlink, qlink_ao, "qphy.lvl", 0x1, 4); >> +DEFINE_CLK_RPMH_BCM(sm6350, ipa, "IP0"); So you're saying that the above line is unnecessary... >> static struct clk_hw *sm6350_rpmh_clocks[] = { >> [RPMH_CXO_CLK] = &sc7280_bi_tcxo.hw, >> @@ -613,6 +614,7 @@ static struct clk_hw *sm6350_rpmh_clocks[] = { >> [RPMH_LN_BB_CLK3_A] = &sm6350_ln_bb_clk3_ao.hw, >> [RPMH_QLINK_CLK] = &sm6350_qlink.hw, >> [RPMH_QLINK_CLK_A] = &sm6350_qlink_ao.hw, >> + [RPMH_IPA_CLK] = &sm6350_ipa.hw, ...and that this line (above) can instead look like this: [RPMH_IPA_CLK] = &sdm845_ipa.hw, Correct? > This can use sdm845_ipa.hw instead of defining new clocks. Your statement seems to also be true for the [RPMH_IPA_CLK] entry in sdx55_rpmh_clocks[]. (For the record, the commit that added that one was authored by me, and I didn't realize what you have stated here.) Please confirm, and I'll update. I'll also send another patch to remove the definition of sdx55_ipa if Mani is willing to test it for me... Thank you Dmitry. -Alex >> }; >> >> static const struct clk_rpmh_desc clk_rpmh_sm6350 = { >> -- >> 2.34.1 >> > >