Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2311230ybc; Sun, 24 Nov 2019 18:13:07 -0800 (PST) X-Google-Smtp-Source: APXvYqz9I4/wUlqNiMLI7jOy5G3qB4iuP+QV3/W5820oSpafbsOz0v/lDl+e1s0FSpb4QjgZbSIv X-Received: by 2002:a17:906:8498:: with SMTP id m24mr8871314ejx.43.1574647987266; Sun, 24 Nov 2019 18:13:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574647987; cv=none; d=google.com; s=arc-20160816; b=B6ho6a0/zjTyt7jGjEevtSu7zQ+GZwAdTDDJMN/4rMBpCjKqVU/dn+jwggHaixMdK0 7WTlTDIr/6c8YkyR7MN6IlzdlWAgiKsjBJDIVbXwF1a0ivHR7dTRzc0LD/z8JW0+B3jZ TNZBDOIV+SoAiMyYhG8QA+KBD1IwzkXwzju9dhGMSbrekPDtj0HZTvooudl3cR5yc0q+ SljR6eYoqawEYHf//xCGX/ZydrJPlYAbkwk0m+qGTiFeGh06tEaIV5Zrmh3c4qOyVPP9 jaNCD2IFu3dVZv2h2e7OrpFdrlKo1HyjCAEvyeVImozIi06N7wdazHMJ9pC+9ZHc8ll9 VFHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XeMugYpkKobbybiI0I0oXL667ShpIIeNrq9CaYiRjik=; b=SBwfhgZTEASgYHR+kJRrMtThiX0Usy8BQ1YFlygjX+sDIkSJ6P2EnrjIArlSCQcG+F jTEYV2++ex8roBV9oasAftGrMxzIFmyEN11Anx6pc0xQnn/ogunqhpM/HRSut77JlQQZ iscsxqWMGk8wXTNEr0N4K5vbuWiSlNdcn9ms2V0m0K0RPIy9C7sL3stEcXvla6Srm2OB g4vTX3w6Sn2YYBcbDH+KidxfnkvsiK2Q8Ux2mH+y0pptcb+MCFJuZ1wyW8o2aisVbP4A mK1dxVxZRiJFOc5TNQvz3XLlYejregsTdQmq3HlP1I4nuydF/ivTNaWYwfWOH5gFzFcI m2Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="c//0cKG0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck4si3658265ejb.29.2019.11.24.18.12.43; Sun, 24 Nov 2019 18:13:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="c//0cKG0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726937AbfKYCLh (ORCPT + 99 others); Sun, 24 Nov 2019 21:11:37 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:54715 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726855AbfKYCLh (ORCPT ); Sun, 24 Nov 2019 21:11:37 -0500 Received: by mail-wm1-f67.google.com with SMTP id b11so4183850wmj.4; Sun, 24 Nov 2019 18:11:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XeMugYpkKobbybiI0I0oXL667ShpIIeNrq9CaYiRjik=; b=c//0cKG0TWAq3iryxvBdzR9JpVwdtLFCpnOpLRN1glatGXIIDnnVzIA5IHC1Rv2jL0 T6NdpXkdDJ9Zhx2I28n7kYuqaJpOYIYuDKX3ykjn8jwZOg6MoSPzRBYlHerwHByD7LWA ravrJgHDNsxJrXyA29V4bAv/06/QcEyx5exLkEaRWSWpQC9AGLciv5hWjVj15zPDxbWK ulF9zudAL9+7RPGSHMdv71Q2n0aKjgRZuiUbnyJoOjP1Cr+jguiQNeVdW8FT6aM4g9yA zzLi8hymdO3Zd4KztDe4cXqBFOllPV7EejMqgrHSiPpCWTFsBys+dMZh1l7Mb52Yawav Kq+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XeMugYpkKobbybiI0I0oXL667ShpIIeNrq9CaYiRjik=; b=ai1jaOLsJhSRgZeqgmTxFmTF2fU5swwpzKu36oBZEIaZG2sj7AJn8nB30AMRvFeaHM qt2wVJcl68AG6YLEaW40Yii7GoSK5Kx6zQp6DnZvZAD9LsanoD9USg5nFC4GkkTlNHZB 7bf8f0W4dItKJhsybEn8P5KVxUeW1bG2LoKS+hbDRfkfeP7hH6OiEK1GoyFUzbcrzKye mo7fvcBMBhrennXPXbAPjQDtUOlFEFfH0pINij0LSEW8Lm/MVEUzp4QDfc3G86/8sJ/D fJDP90r/dek4rLMbeh/fF5e9ilBYqrAsPPN8qMl9j+L8p9IY4VyQ2xvXmQbqOIfPpqwg kUbQ== X-Gm-Message-State: APjAAAXsG1lD+NvaS2rRoGkxPu1K9xw/9reV5haRWCn2kmqv7MvAE6Bj giV4WlrVmu3Ss9EVPGS/EmarzdS2oD5MxsAc/Tc= X-Received: by 2002:a1c:6641:: with SMTP id a62mr25851841wmc.54.1574647894609; Sun, 24 Nov 2019 18:11:34 -0800 (PST) MIME-Version: 1.0 References: <20191025111338.27324-1-chunyan.zhang@unisoc.com> <20191025111338.27324-6-chunyan.zhang@unisoc.com> <20191113221952.AD925206E3@mail.kernel.org> <20191125013312.ACC2E2071A@mail.kernel.org> In-Reply-To: <20191125013312.ACC2E2071A@mail.kernel.org> From: Chunyan Zhang Date: Mon, 25 Nov 2019 10:10:58 +0800 Message-ID: Subject: Re: [PATCH 5/5] clk: sprd: add clocks support for SC9863A To: Stephen Boyd Cc: Chunyan Zhang , Mark Rutland , Michael Turquette , Rob Herring , linux-clk , DTML , Linux Kernel Mailing List , Orson Zhai , Baolin Wang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Nov 2019 at 09:33, Stephen Boyd wrote: > > Quoting Chunyan Zhang (2019-11-17 03:27:15) > > > > Not sure if I understand correctly - do you mean that switch to use a > > reference to clk_parent_data.hw in the driver instead? > > like: > > https://elixir.bootlin.com/linux/v5.4-rc7/source/drivers/clk/qcom/gcc-sm8150.c#L136 > > > > Yes something like that. > > > Since if I have to define many clk_parent_data.fw_name strings > > instead, it seems not able to reduce the code size, right? > > Ideally there are some internal only clks that can be linked to their If the *internal* clks should be in the same base address, then we have many external clks as parents, since most of our clks are not located according to modules which clks serve, but according to clk type. > parent with a single clk_hw pointer. That will hopefully keep the size Since all clks used for a chip are defined in the same driver file, I actually can use clk_hw pointer directly, that will cut down the size of this driver code, and also easier for users to look for parents for one clk (only need to look at driver file). But not sure if you aggree this way? > down somewhat. And if there are any external clks, they can be described > in DT and then only the .fw_name field can be used and the fallback > field .name can be left assigned to NULL. Yes, I noticed that. But I still need to add many .fw_name, that will not be a small count. Thanks, Chunyan