Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp688439iob; Wed, 4 May 2022 06:08:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5Bq4NyZ2yuoDkdDGRYWmHfPXaPSLOFnMhYDRiFgoWzev0adItP8KJgvv2qs3EkaPBlaQB X-Received: by 2002:a17:906:1cd1:b0:6ec:c59:6a1d with SMTP id i17-20020a1709061cd100b006ec0c596a1dmr20304152ejh.77.1651669692719; Wed, 04 May 2022 06:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651669692; cv=none; d=google.com; s=arc-20160816; b=XFohieHNxAGQldgzJEX6t/3Z/RdCemtheTwDMLs3UT8m94JQrTcgRkYJadP6+20eas xzbkljaw5LcpKGnqCD4rbxowg1VJPHUJGJNoJPF5nWx+dc67VVRdbfVfrdJJKfP6FdIs a+0BhVwCN9TiKdDluuWsNENV1SNet0jn7QrAKoNvQdALO7EVxughTCXXOoliWlUOPX4C EUNqa41HlpHxMPcsXdem7e6nrMd2l9IXYkR1ObNWnW9OB0h23klSoG6NsCQFD+yJHmOs d2+75bNUe5+7fP1X4242bQqLfCq9ga194daPjzqEd4HW02XhtvCAvlhUW5BwLyIBdola XFIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=S8r5AHZucns0I0daOUq3N1CwlE3hsFkxc7yh810nreU=; b=MSJzw+Z4EJxp/4Z+IsSMnbTW1wVAXCQH63IbGG1o/Vf/QGM9Ns0RDg6/mnPSIzCQ/q o+6C4XeDHGHB6Adscxq2k6+THf5exzZaSy81MhcRDj+bo6xc/4LEN4zDQMltjbwmVCWN 8BnHE2+YhmPTpYbXla25txLz+TjN8omgT1IXqY7pMRPix8yaYp0vGtpJFreNu8/SWxFs cw2hxCiv2/9HuNatuLaNwbrU6fEkA3pxjavxgnH2xYuVeJXPYomwVYhP0ffRgsNPD5dJ kOuMzm7nmLtd5ZlwVB+9YUiLUpydIDO7RxKeTJJ6zG4ZYjgMi9rw1HNMCW3zsE+UsOkP G28g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bw7HNipU; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v23-20020a1709064e9700b006f39901edd6si16649835eju.400.2022.05.04.06.07.48; Wed, 04 May 2022 06:08:12 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=bw7HNipU; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238612AbiECTWt (ORCPT + 99 others); Tue, 3 May 2022 15:22:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238094AbiECTWi (ORCPT ); Tue, 3 May 2022 15:22:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E70EE3FBE9; Tue, 3 May 2022 12:19:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8292461948; Tue, 3 May 2022 19:19:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEBE0C385A9; Tue, 3 May 2022 19:19:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651605543; bh=S8r5AHZucns0I0daOUq3N1CwlE3hsFkxc7yh810nreU=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=bw7HNipUWvVQAmvSfBp+4cNCpONzg66Mq1gQNQ1prwJNza4BP4VwA3t/aa5GPcgRB sVRPbpX79XPIyPz+bStoZlAd7Sw7PfahlxgrobOEv1p9Jns47R9sq5agA+sl+6JFmr 47vTxkOikFB8RorCnPnwDErJhafnBK5RgzY0wozNRFPsZRTetA43tp2aTq8RPDBmh+ mZUfFXlxuIvtp5aPGTP114yS1MuAlj+l4XRYURX6Q6iqxF9W2UbYE6g/hQ1//O/mv/ fY6o211mifvZ3feH/y5R9c+alyEuJlclmSheeomx16sskw7+5vs+z5VL8VVJgecemo le9lipnnV6bkw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20220422230013.1332993-1-bjorn.andersson@linaro.org> <20220423014824.912ACC385A0@smtp.kernel.org> <20220423031350.01299C385A0@smtp.kernel.org> <20220425223426.BE973C385A4@smtp.kernel.org> <3fb043e6-2748-24f8-0115-b5372c747a12@linaro.org> Subject: Re: [PATCH v2 1/2] dt-bindings: clock: Add Qualcomm SC8280XP GCC bindings From: Stephen Boyd Cc: Krzysztof Kozlowski , Michael Turquette , Rob Herring , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_tdas@quicinc.com To: Bjorn Andersson , Dmitry Baryshkov Date: Tue, 03 May 2022 12:19:01 -0700 User-Agent: alot/0.10 Message-Id: <20220503191903.CEBE0C385A9@smtp.kernel.org> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Quoting Bjorn Andersson (2022-04-28 12:12:49) > On Thu 28 Apr 09:24 PDT 2022, Dmitry Baryshkov wrote: >=20 > > > > > > > > And actually might I suggest an alternative approach to manually us= ing > > > > indices everywhere? What about spending the time once during the bo= ot to > > > > convert .fw_name and clock_names to parent indices during clock reg= istration > > > > and then using them for all the further operations? > > > > > > > > > > I'm pretty sure that's what clk_core_fill_parent_index() already does. > >=20 > > In this case I think we should go for clock-name in the DT and > > auto-flled indices inside. Stephen, WDYT? Would that fix your concern > > for comparing strings each and every time? > >=20 >=20 > You mean, just continue doing what we've been doing lately with fw_name > etc? >=20 > That lookup is the one that Stephen wants to avoid. >=20 Right. Translating .fw_name to indices isn't a solution because I want to=20 1. Reduce the number of string comparisons 2. Shrink the kernel's data section by removing strings and having there still be strings works against both points.