Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2896970rwl; Mon, 27 Mar 2023 06:49:21 -0700 (PDT) X-Google-Smtp-Source: AKy350aowwmuth+6ZR5z+We1PhEV8QUQE63aUuE9v6Mw8+tWOi5yWP15aSF7gjDR+JcerTCZaWg0 X-Received: by 2002:a17:906:1e08:b0:93b:d1ee:5f41 with SMTP id g8-20020a1709061e0800b0093bd1ee5f41mr12834395ejj.31.1679924961335; Mon, 27 Mar 2023 06:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679924961; cv=none; d=google.com; s=arc-20160816; b=rSjfT4teWuwvKFEOvxKb3YX7A1mKqheEew3F+0lTEeDEoxHuaFEb1sUH2we5jTLP/w OlRS21dq8ZISZHeqluzMfm8n8FNGh+LfbVo5hHcrd2hWNxf2Idw88eptOgOK4iJ1Utgk VOdIapqLlGZz0swtrdkYwUN0xwcmuoo6XbqV3Rplh5jnEWYT1IS7FsAvvkDaOc9WK/q4 7V7aMWaw8A7rREqdeCQG/mzcgCUQ22WDjB6uWX+mCgA5JyIIlANo5e4EC31BBQPqqDN9 umCKA1VtSlAb1u6+VMf9odz2rbliCO/EpQGhzTLKhaSXQagr9kae2ohBmb7XL/OFDhjH JqcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pyeJhFAbE+miqSstuxVl40dzgwv1mlbuNAYyruqXoxM=; b=PFL2MTZYjLxoe7ARVLdRRh+TrZhxmAeQPRoLjpiGCl0/bPvzA5/oQAQbUqCJSO0L47 RSHF6uXtRTBHebNkExB3kQOPFsEGFokOeBeLyaER1YmuXHRxvL4Nfpjb5CaO6tzbZSoY s0bS0Rkh0ziNcGw37+9o6QAPpXYEln+dFGd6Ij9evaY6HQM9RG3JHmp8TH/p9JA3/9VB Cxr5SH6ZFFJNu49Ddd9EIOrkObpYyYQX7uXq+/qMoP8jSQ0Jr0KyL7li5eZIuJcwf/ox cZQBP5gs+RhuLCPpta+zlndqNbOUUH897aCg7rkMaKdlvD1QatV8/BgvTn3tSWqaq9uB 6+2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=duYnrmuS; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz38-20020a1709077da600b00939a0e68aa6si14126767ejc.418.2023.03.27.06.48.56; Mon, 27 Mar 2023 06:49:21 -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=@sberdevices.ru header.s=mail header.b=duYnrmuS; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232525AbjC0Nq0 (ORCPT + 99 others); Mon, 27 Mar 2023 09:46:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjC0NqY (ORCPT ); Mon, 27 Mar 2023 09:46:24 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CD3B40CA; Mon, 27 Mar 2023 06:46:22 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id AC5A85FD0E; Mon, 27 Mar 2023 16:46:20 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1679924780; bh=pyeJhFAbE+miqSstuxVl40dzgwv1mlbuNAYyruqXoxM=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=duYnrmuSgzHWdSczRpO68tljKttJNIPVDeNiQBFip0fwd8LxhibTr2LnvkkNU8pk6 4JlBWnlv1ESX+Zl/5Xsex6w/O2yAMHJH4pz3gcG3JHQFltZk7qdU5t8nP9vOYCrTKN UcSp5XQDL8+GWUhiDK4jEhUzkau4ZOt0QsPbUM+WljChE0Jt1o56mpoFn/2KzG8X0O +EiGEKWxz0jNkOgj5kcflpn+tatw+ZfpiF6XCCJYbtg36MaslCU70IaEKEDNlBTUdP G1tLxC09SqQXMbZD8R1J6itvBAJ36PLSFw3U3Swr9U142lhCQ/hktiz4TURA7ZWuCI 0DDUlVaJy/T2Q== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Mon, 27 Mar 2023 16:46:20 +0300 (MSK) Date: Mon, 27 Mar 2023 16:46:19 +0300 From: Dmitry Rokosov To: Krzysztof Kozlowski CC: Jerome Brunet , , , , , , , , , , , , , , , Subject: Re: [PATCH v11 3/5] dt-bindings: clock: meson: add A1 PLL and Peripherals clkcs bindings Message-ID: <20230327134619.hs272yreukj6xw3l@CAB-WSD-L081021> References: <20230321193014.26349-1-ddrokosov@sberdevices.ru> <20230321193014.26349-4-ddrokosov@sberdevices.ru> <1jmt3yo5r0.fsf@starbuckisacylon.baylibre.com> <20230327105115.ury3w4xpzhcpnqjg@CAB-WSD-L081021> <1jilemo1r9.fsf@starbuckisacylon.baylibre.com> <1f68ff4f-46ab-7d9e-fa57-bb94beb4c691@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1f68ff4f-46ab-7d9e-fa57-bb94beb4c691@linaro.org> User-Agent: NeoMutt/20220415 X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH01.sberdevices.ru (172.16.1.4) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2023/03/27 05:49:00 #21016052 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Mon, Mar 27, 2023 at 03:41:27PM +0200, Krzysztof Kozlowski wrote: > On 27/03/2023 13:39, Jerome Brunet wrote: > > > > On Mon 27 Mar 2023 at 13:51, Dmitry Rokosov wrote: > > > >> On Mon, Mar 27, 2023 at 11:51:21AM +0200, Jerome Brunet wrote: > >>> > >>> On Tue 21 Mar 2023 at 22:30, Dmitry Rokosov wrote: > >>> > >>>> Add the documentation for Amlogic A1 PLL and Amlogic A1 Peripherals > >>>> clock drivers. > >>>> Introduce Amlogic A1 PLL and Amlogic A1 Peripherals device tree > >>>> bindings and include them to MAINTAINERS. > >>>> > >>>> Signed-off-by: Jian Hu > >>>> Signed-off-by: Dmitry Rokosov > >>>> --- > >>>> .../bindings/clock/amlogic,a1-clkc.yaml | 73 +++++++++++ > >>>> .../bindings/clock/amlogic,a1-pll-clkc.yaml | 59 +++++++++ > >>>> MAINTAINERS | 1 + > >>>> include/dt-bindings/clock/amlogic,a1-clkc.h | 113 ++++++++++++++++++ > >>>> .../dt-bindings/clock/amlogic,a1-pll-clkc.h | 21 ++++ > >>>> 5 files changed, 267 insertions(+) > >>>> create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-clkc.yaml > >>>> create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > >>> > >>> There is two drivers (and 2 independent patches). There should be 2 > >>> bindings patches as well. > >>> > >> > >> Before, in previous versions I had two versions, but it wasn't bisectable > >> approach. > > > > You are confusing bisectable and Rob's robot. Splitting patches is more > > that likely to help bisect (and patches backport) - not the other way around. > > No, he did not confuse. Splitting patches makes the series > non-bisectable which was visible in the past. > > What's more, there is no reason to have bindings patches split just > because you split drivers. Bindings are independent of drivers - we > write them for hardware description. > > > > >> a1-clkc schema depends on a1-pll-clkc headers and vice versa. > >> It means dt schemas checkers will show us failure if we split them into two > >> patchsets. > > > > Only because you are patches are not upstream yet ... > > > >> I know, that we can use raw digits instead of CLKID names, but IMO it doesn't > >> look like production schema and it requires one more patchset above the > >> series with proper CLKID definitons usage and proper header including. > >> > >> BTW, there is an example of Rob's test bot failure found in the previous > >> v10 patch series due to chicken or the egg problem. > >> https://lore.kernel.org/all/167769997208.7087.5344356236212731922.robh@kernel.org/ > >> > >> Please advise what's the best practice to resolve that.. > > > > Don't use the header in your example would solve the problem and > > still be correct DT wise. > > > > The examples are just examples, they are not required to actually > > matches a real HW, as far as I know. > > Yes, that would work... or just keep them here. I've mentioned it in another reply, by anyway.. Yep, we are able to cheat dt checkers, but we don't help dt developers with such example. From my point of view, it's more clear for DT developer to see direct CLKID points instead of "fake references". May be, it's better to prepare two patches in such hierarchy: 1) A1 PLL clkc bindings with fake references without clkc headers 2) A1 clkc bindings with real CLKID bindings + A1 PLL clkc bindings fix with real CLKID A1 clkc bindings + header. The such approach resolves DT checkers failures and split DT bindings into two patchsets. Also bisectability isn't broken. -- Thank you, Dmitry