Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp369162imn; Thu, 28 Jul 2022 03:20:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vJbvl9fkDUj9P9zyQVvOsWCrB3EkmtzRYqKadUa83ATOuSs0i16NK7E0ACHvJdRKnOIXWr X-Received: by 2002:a17:906:53c7:b0:711:d2e9:99d4 with SMTP id p7-20020a17090653c700b00711d2e999d4mr20461496ejo.716.1659003658036; Thu, 28 Jul 2022 03:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659003658; cv=none; d=google.com; s=arc-20160816; b=Y2XBGFMaQXDi7RbRmTOXMO0e6il8x6qvDT0zEMssDydEuibggs6rV5YBMsZSZ4FXtP ZBzAVH0GBx6U8qZCvTd93MbC3weLgzQpCS4MWwCf8LFMOjIU/Qccm10sw8O14d8fpIty PZT8JP4a8C2/HnQvCQw6A1nEuKNLTk06o6JtG69ZbeWLEruckaAeR25tscZFSzzHhLyP SC7s4gDurSrufVEcn+ejivbbl0SoncjU7r6lHsfkZWnAxvJ2YJxw0+0m4gZA+s+hBXl3 mtRkcLboBtnAIc1BNqR+qWP4QQbS7t9qTDuBXeDLUaZgIwBR2Yi+6ql1sSbRR3OCQaJg kdQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=VeY+xZ+GfSl4PiAsXRlttSm0XsmOUmv08VQMmSjpRno=; b=KpuLD0SR7XshhLp5KuZhr1+RFJIkrtIsu3EBwxnSKTv07YA3ynf78dCfRUf0KWpK19 NjLlTQyKBSxgGWT4FUSuCuwj5f2v52E81Lo5QBFBOGrQ6i4uWE2iNU6w2I66bcXe0qcG yTjm/yXPC3FgynDF/YZsj4e6wppp0/N0pQUnbOg1ouWN1OOeTdPGjVpK1voebRZghNhP orjbEBClKV4MU9D6wjdndfLfiUhrKT42W0FiBqkg9tnNsFJrm1Oedz27yB042cP01quN Ip/zh+CHb8UvgHQnuJPK/85vAEnBU+1oN/c0gWi765DAOJtOjgPdWiJVUYG9cp9ejNNk kMig== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb39-20020a1709071ca700b0072b3a316cc6si371970ejc.977.2022.07.28.03.20.32; Thu, 28 Jul 2022 03:20:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235357AbiG1JxC (ORCPT + 99 others); Thu, 28 Jul 2022 05:53:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233296AbiG1JxB (ORCPT ); Thu, 28 Jul 2022 05:53:01 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A11EB15A2E; Thu, 28 Jul 2022 02:52:59 -0700 (PDT) Received: from [10.18.29.47] (10.18.29.47) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 28 Jul 2022 17:52:57 +0800 Message-ID: <9256c0f2-a656-996f-0ed8-d22ae2907070@amlogic.com> Date: Thu, 28 Jul 2022 17:52:57 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH V2 0/3] Add S4 SoC clock controller driver Content-Language: en-US To: Jerome Brunet , , , , , , Rob Herring , Neil Armstrong , Kevin Hilman , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Martin Blumenstingl References: <20220728054202.6981-1-yu.tu@amlogic.com> <1j8rodhfn9.fsf@starbuckisacylon.baylibre.com> <032b3c3f-f899-bf53-ecbb-35191d39392b@amlogic.com> <1j4jz1hbr5.fsf@starbuckisacylon.baylibre.com> <965f83cf-4695-f89c-5ede-2f6b2524f392@amlogic.com> <1jr125fvz0.fsf@starbuckisacylon.baylibre.com> From: Yu Tu In-Reply-To: <1jr125fvz0.fsf@starbuckisacylon.baylibre.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.18.29.47] X-ClientProxiedBy: mail-sh.amlogic.com (10.18.11.5) To mail-sh.amlogic.com (10.18.11.5) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS 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 On 2022/7/28 17:03, Jerome Brunet wrote: > [ EXTERNAL EMAIL ] > > > On Thu 28 Jul 2022 at 16:55, Yu Tu wrote: > >> Hi Jerome, >> Thanks for your reply and explanation. >> >> On 2022/7/28 16:27, Jerome Brunet wrote: >>> [ EXTERNAL EMAIL ] >>> >>> On Thu 28 Jul 2022 at 16:06, Yu Tu wrote: >>> >>>> Hi JB, >>>> >>>> On 2022/7/28 15:08, Jerome Brunet wrote: >>>>> [ EXTERNAL EMAIL ] >>>>> >>>>> On Thu 28 Jul 2022 at 13:41, Yu Tu wrote: >>>>> >>>>>> 1. Add clock controller driver for S4 SOC. >>>>>> >>>>>> Yu Tu (3): >>>>>> dt-bindings: clk: meson: add S4 SoC clock controller bindings >>>>>> arm64: dts: meson: add S4 Soc clock controller in DT >>>>>> clk: meson: s4: add s4 SoC clock controller driver >>>>>> >>>>>> V1 -> V2: Change format as discussed in the email. >>>>>> >>>>>> Link:https://lore.kernel.org/linux-amlogic/20220708062757.3662-1-yu.tu@amlogic.com/ >>>>>> >>>>>> .../bindings/clock/amlogic,gxbb-clkc.txt | 1 + >>>>>> MAINTAINERS | 1 + >>>>>> arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 11 + >>>>>> drivers/clk/meson/Kconfig | 15 + >>>>>> drivers/clk/meson/Makefile | 1 + >>>>>> drivers/clk/meson/s4.c | 4732 +++++++++++++++++ >>>>>> drivers/clk/meson/s4.h | 296 ++ >>>>>> include/dt-bindings/clock/s4-clkc.h | 146 + >>>>>> 8 files changed, 5203 insertions(+) >>>>>> create mode 100644 drivers/clk/meson/s4.c >>>>>> create mode 100644 drivers/clk/meson/s4.h >>>>>> create mode 100644 include/dt-bindings/clock/s4-clkc.h >>>>>> >>>>>> >>>>>> base-commit: b293bc9286ee21824e93f0fcfed3b78fdfee01e6 >>>>> Please don't post until you have addressed *ALL* the comments from the >>>>> previous version. >>>> The last email asked you to adopt A1 method, but you did not reply? >>>> >>>>> At first glance, I can see that this is still a single driver for >>>>> what is obviously 2 controllers with 2 register spaces. Simple comments >>>>> like the "<< 2" in the register declaration have not been addressed either. >>>> I understand that this should be a controller, just two address >>>> descriptions. One is the various PLL registers and one is the clock for >>>> the peripherals. And PLL is to provide a clock source for various >>>> peripheral clocks. So a clock controller is reasonable. I think you got >>>> it wrong. >>> I don't think I do. This looks exactly like the A1. >>> The post of that controller are still in the archive and I am sure your >>> colleagues can give you the history. >>> You clearly have register regions providing clock, separated by >>> 0x8000. Claiming that as one big region is bad design. >>> There has been several remarks about using a big syscon on V1, >>> unaddressed too. >>> CCF has everything necessary in place to handle each register region >>> separately, properly and pass clock around. >>> You can handle it as a single controller, claiming the two regions >>> individually but: >>> # 1 - handling 2 different regmaps in the controller is going to be >>> bigger mess than you think >>> # 2 - I am far from convinced there is any reason to do so >>> >> It makes sense, as you say, to separate the two controllers. But I think >> the only thing that was forced apart was that the digital designers >> didn't put these registers together when they were designing the chips. >> > > One controller is providing all the base PLLs > The other is providing most (if not all) the devices clocks. > This does not look like coincidence or mistake to me. Thanks for your reply. Looks like I got it wrong. However, I will talk to the chip designer about whether it is possible to put these registers in the later chip so that it may be easier for our software to process. > >> I'm going to separate the two controllers like you said. >> >>> >>>> >>>> Ok, if you insist on using two clock controllers,, please provide your the >>>> reason and example code? >>>> >>>>> Seeing that, I have not reviewed this version further. >>>>> I won't until all the comments from v1 are either addressed or answer >>>>> Regards >>>>> Jerome >>>>> . >>> . > > .