Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp356957rdb; Fri, 17 Nov 2023 00:13:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHnw+kbwaMfLytd5j1WMtYHcDqMCWu+x5nFxnmtp8xDYdJAJql3Hnkvgxif2/3Q8zGUW2BM X-Received: by 2002:a05:6a00:22c2:b0:690:f877:aa1e with SMTP id f2-20020a056a0022c200b00690f877aa1emr6820799pfj.12.1700208813925; Fri, 17 Nov 2023 00:13:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700208813; cv=none; d=google.com; s=arc-20160816; b=iXcHYZNMfdErn6OynBl9iID/4uoJ2QjSN2cdUg80PS1MegNH/BzT2IoWmKvxtrvF9R Yq/LLfeZuo/YFmcof7M6wHh+ugl0ie6n/q74VAMzBuF7rM7NpqYTPKiGHyt0A2NWTRXo cIzMyJq8mbpAq3a7ivZt+b+QPCub28VOzdtLeZ859qeNLTeLkB5pgN91e5TQUnqzPCDm ancVH8NQaPVUiPbZoMYwAgOnS2Vb0HGaXzE0cQ7A0K43K/LWIRKFewzrPl4DMQwvDSLo EDwhV/POytBw9UpdWIv0CQoAkEB4cT9DuiLAp8KenRcfGSUuLpR2qID8ZbyDwZBDAt8h ANEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NgWRvk6HccSm+Y6u2a8Kthrbf4al2XdyM+ofwViwvhY=; fh=W+tznAtazZlW3HUUERY4LrvoiCETKOrCXlawF1Utkps=; b=vsbH4P27fLW/jmjQ4QeChvsgg5l4wSdjOw0QFUUQi8yI3YvGYjUtrPSB030tQ8g0au Eqq2LpgE5w8CFih2FyDumCu/BNLXWuqm5ntknehGI7/8o2gm5vs9TDA8Phs6qc2ph80Z XntmLeWeNhrMeVx51eTIHG89so3Zb0eznIX/ZHUa9gN4mMG7zpfrx2McesT1TfmVXerS 4hVJOApSiYohedGCe6GrjcgDFZknxkHoF6kqfupEM9h9kPDX+1+WGn5O0kElAN4GjsAZ avwfzB/R3Je+adOy2FtDoZPuKZ9Du0MIvmhsQRFMWzzJquGUhfSoQUr7nDpOnYiEGURb 1CVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hKR2r491; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id z13-20020a056a00240d00b006c1691263cesi1410119pfh.291.2023.11.17.00.13.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 00:13:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hKR2r491; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 3C8DB81BE2F0; Fri, 17 Nov 2023 00:13:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230359AbjKQINY (ORCPT + 99 others); Fri, 17 Nov 2023 03:13:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbjKQINX (ORCPT ); Fri, 17 Nov 2023 03:13:23 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76203A8 for ; Fri, 17 Nov 2023 00:13:20 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00B6AC433C7; Fri, 17 Nov 2023 08:13:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700208800; bh=RPcbB+jdW8SosobxciCWR/egl8ZrKh5jeQWqAfD2+vU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hKR2r491krdpa74I19bkbkY1tFTT5yyVBwSe81sMme0lcZKOwrlp9p5wQsHPX6JCs OfCvtlHvt91nBQHPPsu16TdT4me5IELzYagjdEhjyirOohQnO18EMcmwakimhiyyB/ zQEcXEUE39SIfrEuALskJDZp+8Rqn7D1+r6Sw94vMSlkky/qX5UiZm6XOSqQMfXVN9 gppN60qQqdoDO3g31P7UAhYZjf27W1auinHQvnTXGp6azipSTK2DQt1rBhNhRtKxEu qVeNd6EJ9n5RtP5wiDmF7j+23q861zIS2K47YgfUX2O9qBIDmwIFsC0HfOviCaavR5 luomQ9p5tHNiA== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r3tyb-000629-16; Fri, 17 Nov 2023 09:13:22 +0100 Date: Fri, 17 Nov 2023 09:13:21 +0100 From: Johan Hovold To: Sibi Sankar Cc: Bryan O'Donoghue , andersson@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, agross@kernel.org, conor+dt@kernel.org, quic_tdas@quicinc.com, quic_rjendra@quicinc.com, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, neil.armstrong@linaro.org, abel.vesa@linaro.org, quic_tsoni@quicinc.com Subject: Re: [PATCH 2/4] clk: qcom: Add Global Clock controller (GCC) driver for SC8380XP Message-ID: References: <20231025133320.4720-1-quic_sibis@quicinc.com> <20231025133320.4720-3-quic_sibis@quicinc.com> <483c4de3-951c-4ba4-89fb-36fcd44fa99f@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 17 Nov 2023 00:13:31 -0800 (PST) On Fri, Nov 17, 2023 at 09:26:18AM +0530, Sibi Sankar wrote: > On 10/25/23 22:10, Bryan O'Donoghue wrote: > > On 25/10/2023 14:33, Sibi Sankar wrote: > >> +static struct clk_rcg2 gcc_sdcc2_apps_clk_src = { > >> +    .cmd_rcgr = 0x14018, > >> +    .mnd_width = 8, > >> +    .hid_width = 5, > >> +    .parent_map = gcc_parent_map_9, > >> +    .freq_tbl = ftbl_gcc_sdcc2_apps_clk_src, > >> +    .clkr.hw.init = &(const struct clk_init_data) { > >> +        .name = "gcc_sdcc2_apps_clk_src", > >> +        .parent_data = gcc_parent_data_9, > >> +        .num_parents = ARRAY_SIZE(gcc_parent_data_9), > >> +        .flags = CLK_SET_RATE_PARENT, > >> +        .ops = &clk_rcg2_floor_ops, > > > > diff sc8280xp..sc8380xp > > > > Here you've used floor instead of shared ops, why is that ? > > We seem to use floor ops for sdcc clks on all other QC SoCs and > sc8280xp seems to be the exception here. So I'll continue to use floor > ops for sdcc. > >> +static struct clk_rcg2 gcc_usb30_mp_mock_utmi_clk_src = { > >> +    .cmd_rcgr = 0x17158, > >> +    .mnd_width = 0, > >> +    .hid_width = 5, > >> +    .parent_map = gcc_parent_map_0, > >> +    .freq_tbl = ftbl_gcc_pcie_0_aux_clk_src, > >> +    .clkr.hw.init = &(const struct clk_init_data) { > >> +        .name = "gcc_usb30_mp_mock_utmi_clk_src", > >> +        .parent_data = gcc_parent_data_0, > >> +        .num_parents = ARRAY_SIZE(gcc_parent_data_0), > >> +        .flags = CLK_SET_RATE_PARENT, > >> +        .ops = &clk_rcg2_ops, > > > > This is another discontinuinty with sc8280xp. > > > > Could you have a look through the sc8280xp gcc and do an aduit for > > clk_rcg2_shared_ops as against sc8380xp ? > > ack, will do a quick audit before the re-spin. Please trim unnecessary context from your replies. You quoted some 1400 lines of irrelevant clock structs when all you needed was something like the above. Not trimming replies makes it a pain to read your mails and to revisit threads like this one, for example, in the lore web archives. Johan