Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp551345rwb; Tue, 29 Nov 2022 02:09:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf5v3DPVY97C3vPkh3fqeqIJzaHP+hMi+rgu4V0izDDLCyJxxu7vSmn+vEA1k8My75vFdckT X-Received: by 2002:a17:902:848d:b0:17f:8097:83c1 with SMTP id c13-20020a170902848d00b0017f809783c1mr39838928plo.10.1669716599101; Tue, 29 Nov 2022 02:09:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669716599; cv=none; d=google.com; s=arc-20160816; b=S8eNyZTR714OzP7wgZjlfnzCZ5Xl/Y0QVGVuO3aReosq/+S5ilsX09IPWePGOX0IxW ttRXKz9I9uWorgTMwI7oEWIMPN08UGOzeMR3+mSMYy9oxvyU6SJbTFJzsfsPscVvDrTw 9H+KSCqgp1XWxxjs71SkUz+CV8mf+QPGYDSdndJqS8VkXZOXxfPARNIphOLO9Jp/WiB0 +aobK643++QHEtPQdO3WelUV8LH6WetnWiBN0SmcwTnhkGZ9E2d7CVjtGq97rTgMROm5 IS13ZEP7/tr6EybqEnelI25LSKJ/CMoA12rutADptLsZcs6cFroqHr3EVIoysYAc47Yd 7woA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6wMpDXGwqSEa5zIifOleCzBwuNiNpLrKwZxtl7KmLTs=; b=Erupo0lPQqhCEs6CXEM4RnhaVNzxGmi4vPUPnP7m3H2hhq11urpDxv+38glGf5hX8J PRr3lCAnXKAn/Axo9COUdTRCkimNfvoxON0oSBBjjMw+RRPozudnZkytFwGJxJ2Eo8b+ uAh2vi2i9gdmDOFybkNfUcP5Kob4bKVDvi490xffF8bFMJSYaJIT+AUJJicU90KK81v3 7PYe2K5LUftP+O1BwKBxCSFoS5V2+1qly1Q0tK7NS+hTB6lTZ90UcLry2E4HYYJXfH0s E0nuJM9XbyXbNPncGXHv+zu5VWVpqwhA4twIpS9dUXbhZHM5VGLC0HtJ4VWGXOEFM0SL F8cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x33agDxB; 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 jj11-20020a170903048b00b00186ba521dc5si13110897plb.468.2022.11.29.02.09.48; Tue, 29 Nov 2022 02:09:59 -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=x33agDxB; 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 S230205AbiK2J2V (ORCPT + 83 others); Tue, 29 Nov 2022 04:28:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbiK2J2T (ORCPT ); Tue, 29 Nov 2022 04:28:19 -0500 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0AF531EF3 for ; Tue, 29 Nov 2022 01:28:17 -0800 (PST) Received: by mail-yb1-xb35.google.com with SMTP id b73so16682033yba.4 for ; Tue, 29 Nov 2022 01:28:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6wMpDXGwqSEa5zIifOleCzBwuNiNpLrKwZxtl7KmLTs=; b=x33agDxBeO4O7EFSCRWCTdcNkb/iPgF4+EarkrOVhOk/yL7Jio8FSIU8SnSpw3fCuv 3UVICBryhGAQo26F2hG0wR6ZqG4oKEpuT7vdcYC/Zh6V5hDhYAh0j4NxT2qT7CX2QDoP 72SEWndv0o77xsrP/MTMYNk14KdZu17R/zAqQJh8m1F4DVyVYdEiiyKX3Uk0FvIKVXcq 5jxrGeljkjemcKmL8woVADwiL2QZ+SFLsI6SqEUOy60l58419HRlCaQuT8NtrOL50n0Y ulFFUf8zpUX1vXKWM2Wkz6TZdhzbmIYuM9tGEMZBx2FCvhZ1Zxgo5dD+9ualzV0/FzUY D9pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6wMpDXGwqSEa5zIifOleCzBwuNiNpLrKwZxtl7KmLTs=; b=Uxw/CPFBlU17niAZD44um7pGApcgprO03Uc1H3my7MVXwUFPg2siwj6pbMGtTUXx4w w7FAle2iFKaAV81VDOsXPmJ8dXacpwKz46Es1lQOqoqb4Wr8wwxv0Kd1jioxE8eMkSjC 1Kud9eenn7Bm5r7zlKARZFAWsOzj1GlH+kqpvhYBvS/avuIJPoxt3HG3JYHTxLIgLDfJ ntorudBt3QDUyBJNtEiwxHIRT2QDHrRLbWs22stD4WgUNN+yb65dPY/hMkY/qF/TwJaY x0+lkS+nkCdMgSb+Ql9swE2BQisNVrHPSJ6/Za3GGGC2aPvsFY1O9bmqOZ9PTLp2aNsL gDmA== X-Gm-Message-State: ANoB5pkWtxKQZH+ZsoJ70btguozrCWQTSH6peVp6V75obUSqBKN11PjD SFupN1dIaicf0SRQUkRLyYxT+FcG+MXxFk5wBbyD7w== X-Received: by 2002:a25:4dd7:0:b0:6f1:535f:2f38 with SMTP id a206-20020a254dd7000000b006f1535f2f38mr25793379ybb.153.1669714097062; Tue, 29 Nov 2022 01:28:17 -0800 (PST) MIME-Version: 1.0 References: <20221129000047.697089-1-elder@linaro.org> <35be9c2d-63d4-01cf-b8d7-de3306d50e64@linaro.org> In-Reply-To: <35be9c2d-63d4-01cf-b8d7-de3306d50e64@linaro.org> From: Dmitry Baryshkov Date: Tue, 29 Nov 2022 11:28:06 +0200 Message-ID: Subject: Re: [PATCH] clk: qcom: rpmh: add support for SM6350 rpmh IPA clock To: Alex Elder 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Tue, 29 Nov 2022 at 03:54, Alex Elder wrote: > > 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... Yes > > >> 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? Yes > > > 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 > >> > > > > > -- With best wishes Dmitry