From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8517DC197A0 for ; Fri, 17 Nov 2023 08:13:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231190AbjKQINZ (ORCPT ); Fri, 17 Nov 2023 03:13:25 -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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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