Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16402156rwd; Mon, 26 Jun 2023 09:29:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7CE+Sll7VIIP9qYu4px39RjO2YdgJgkPvOFwl4n/MbAgw2vYcKg7R2qB07J57pD1A8tphu X-Received: by 2002:a19:6904:0:b0:4f8:6d53:a692 with SMTP id e4-20020a196904000000b004f86d53a692mr12732001lfc.61.1687796967466; Mon, 26 Jun 2023 09:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687796967; cv=none; d=google.com; s=arc-20160816; b=oPbjK7MjqFnoI5R1WXocBWl4WC7UjQpSrYP0GqhK02GWjv6dNeTrbFwfpfGuWdmy3C K4hdAx5Aa0pzK0yu8E063Isv3qmsfPy3o/nJRutIU7gdYtAv2LCTYtl760rt2yoQKwtt u3DctJkBhG3yVvZsNwnFcPJmURRzo40PUqSFlaydxgxHjxgP7KVyydtaDj4eXrAM/eg0 zo8m6PUMy7IWY0Aos4ScghDg5Za9SAlE75VlHvVyWBDrtWZLGL+N07vuoJ1MWkk9rF6h eueSktedbROCnJTxsE4FCt5oJ369ATLMAYoNmkIKzvwfe4LKx1nqX61uHpqyFFPvY+2I oW/w== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=QXdcqnvtNLyYu0+DzoP64iL7BfxCUJXqKjjg/aEjYQI=; fh=Ax4Lbi6cVUrxhLWyXHKmgcp+szb7tYv3O2Z355/yokA=; b=L0jBBCGT2XAVNKq2qzfohnFEbYsn0/opcdxAhaLHPdYIFKEgUcIQHwdp/MJivRSEgO MqsHKtqLZTtHO3ZcyatLbf4clm522evpga/4l1Hy8uQAkgj28vMOlwHRGLp5fJHnjlmI OSXRF0iagjHp9KZVGyE0XO9RYC0b0/mAZoeIzXxyTVTYsmE/7FHilLTCM1ykV4RIXIyO 0rK2DUa33rik5fI3ExTiLEXNLwd/xpLp4ahMw8u+NxejU7aYFrdRnhr7+/ZwMdKEbR/6 LiJRaxc7/hRioz17gZypLJOq+0dXBuBab1agcCYaOKtkG2U3q0d1UgIOj/m/qjk21D1N nSDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BQyAxkXZ; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r14-20020aa7d14e000000b00519608a014bsi2740118edo.125.2023.06.26.09.28.59; Mon, 26 Jun 2023 09:29:27 -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=@linaro.org header.s=google header.b=BQyAxkXZ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231876AbjFZQSr (ORCPT + 99 others); Mon, 26 Jun 2023 12:18:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231929AbjFZQRM (ORCPT ); Mon, 26 Jun 2023 12:17:12 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83166198C for ; Mon, 26 Jun 2023 09:15:18 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-307d20548adso3146558f8f.0 for ; Mon, 26 Jun 2023 09:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687796117; x=1690388117; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=QXdcqnvtNLyYu0+DzoP64iL7BfxCUJXqKjjg/aEjYQI=; b=BQyAxkXZ/Pm8o888uBT0Y2kNK2mhYizFhK3HVzRIdqmzuAn6Gs2D3LsYIOBLcl+svX i9Wz2xn/4cYfe4gR0ISAEeUPFbRmu0pfQcC3OsUiNW5b+irGTbPSXOOYQ0NN0d+VAP4g I9NtpShUSCTrVjXqUTS/qhaxNVIsW91WNpkYLkRKPw7HIIrkhx1zivzDNqClkkLCyjF9 mguDvcohXv41IN1B/trN9Nzi6S/Fa9cWQA0Qx29ANAysYN2Mqc8aHcbxCmXwdCdhsshu 1+mFtTnuFPIBZpps1BIJP/pMEEGSQLlF2xivddDPAd7v/kR8RYD1MbOF8Vw0vBp7YxlG cuFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687796117; x=1690388117; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QXdcqnvtNLyYu0+DzoP64iL7BfxCUJXqKjjg/aEjYQI=; b=S5+FvSVlPud9dqo8bEksLwZlf6LnA6bJme5WVeSDe68ugnPPM9g6DJHCvTnln0Zlfx YOfrMnXEsncWoEn860S2UroRu7lEua11FZPwkgccnWSvI9k37qDLT33ML7TPdUEgMcKU 3sC1TagEyMYr4ZHq6lS3fJFpX2swf0DBXeIzmrqOqcHYUjV++C8f4D/uYgJXOzHuuutW a1PB3fSWb8dkyf28X7S3QpSX38O2TkRf7UCSBazef+hrCg519gl03vM0ZsZ1ILVB27ii 4QQjPeSbVSDCYIWeZia1u/EWNRgApKuA+cwFWOcnvPzC8zs4VQIVNTwo88aa1kwKGml0 woJA== X-Gm-Message-State: AC+VfDyEWqi8GemkeYushgs/KrrpLbYSSan4dFQxY2Is3SvZ6EkR2RwB vCW7HbwKQyBJSMH1KVddOthYmA== X-Received: by 2002:adf:e684:0:b0:30e:5284:cbc4 with SMTP id r4-20020adfe684000000b0030e5284cbc4mr20071341wrm.68.1687796116886; Mon, 26 Jun 2023 09:15:16 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id m16-20020a5d6250000000b003068f5cca8csm7755235wrv.94.2023.06.26.09.15.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jun 2023 09:15:16 -0700 (PDT) Message-ID: Date: Mon, 26 Jun 2023 18:15:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 03/15] dt-bindings: clock: qcom,dispcc-sm6125: Require GCC PLL0 DIV clock Content-Language: en-US To: Marijn Suijten , Konrad Dybcio Cc: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Krishna Manikandan , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Martin Botka , Jami Kettunen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Lux Aliaga References: <20230624-sm6125-dpu-v1-0-1d5a638cebf2@somainline.org> <20230624-sm6125-dpu-v1-3-1d5a638cebf2@somainline.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 On 26/06/2023 16:26, Marijn Suijten wrote: > On 2023-06-26 11:43:39, Konrad Dybcio wrote: >> On 25.06.2023 21:48, Marijn Suijten wrote: >>> On 2023-06-24 03:45:02, Konrad Dybcio wrote: >>>> On 24.06.2023 02:41, Marijn Suijten wrote: >>>>> The "gcc_disp_gpll0_div_clk_src" clock is consumed by the driver, will >>>>> be passed from DT, and should be required by the bindings. >>>>> >>>>> Fixes: 8397c9c0c26b ("dt-bindings: clock: add QCOM SM6125 display clock bindings") >>>>> Signed-off-by: Marijn Suijten >>>>> --- >>>> Ideally, you'd stick it at the bottom of the list, as the items: order >>>> is part of the ABI >>> >>> This isn't an ABI break, as this driver nor its bindings require/declare >>> a fixed order: they declare a relation between clocks and clock-names. >> Bindings describe the ABI, drivers implement compliant code flow. > > That is how bindings are supposed to be... However typically the driver > is written/ported first and then the bindings are simply created to Your development process does not matter for the bindings. Whatever you decide to do "typically" is your choice, although of course I understand why you do it like that. You can argument the same that "I never create bindings in my process, so the driver defines the ABI". > reflect this, and sometimes (as is the case with this patch) > incorrectly. > > That, together with a lack of DTS and known-working device with it > (which is why I'm submitting driver+bindings+dts in one series now!) > makes us shoot ourselves in the foot by locking everyone into an ABI > that makes no sense. No one is locked into the ABI. SoC maintainer decides on this. However unjustified ABI breaking or not caring about it at all is not the way to go. It is not the correct process. > >>> This orders the GCC clock just like other dispccs. And the previous >>> patch dropped the unused cfg_ahb_clk from the bindings, so all bets are >>> off anyway. >> Thinking about it again, the binding has not been consumed by any upstream >> DT to date, so it should (tm) be fine to let it slide.. > > Exactly, I hope/doubt anyone was already using these incomplete > bindings. And again: the ABI here is the name->phandle mapping, the > order Does Not Matterâ„¢. No, it's not. Your one driver does not define the ABI. There are many different drivers, many different operating systems and other software components. Best regards, Krzysztof