Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp58535rdd; Wed, 22 Nov 2023 09:18:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3K70TYnE18l9y3wwm1DK3i22KtlZdhySaiICo8CIaVnBShluMvDr0GnMR4WmCSoWAZ6lS X-Received: by 2002:a05:6a21:9706:b0:18a:f1f5:c4ae with SMTP id ub6-20020a056a21970600b0018af1f5c4aemr2559232pzb.42.1700673516982; Wed, 22 Nov 2023 09:18:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700673516; cv=none; d=google.com; s=arc-20160816; b=bHtTLH6EedvHijld3h10q3bi5lC3RGizIX45DuHPzIx3kPaV5Pqj8ch1XKkBR7sdil YnqHM9wcVQtRC6wQ7l3SBkV3itFJoChawQTEzSHosMDvBKDYap+Uk3AgdJAfTnWoHdyp Sxhgr/mGBuqspZauUTkzgIreAW3Hjh/55ei+3M1S1WddZS2fJ3hBbijBmnWbYMNoFNw8 Nd6dThRGhZCbq8fNeaot1BbmGxRjWTlCo0eXk1secbXZ/6KVOZxPv/cpd1BLfoqh1b0a PJR1vVApfjXd+nic0TRp6mos40AGqVLAgD2wDQxc5Gvsp9uFFSC9WGOEJuqcZBX6iY+T RZ2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=EhO7+CVm1m1oUE9z/3Z07Nkno2ujdBPUPga6VKMIC2w=; fh=luxGJbM+odLa3AzECmXHyvy1/K5ObsrjBKMBgSoLBrQ=; b=kASRcVKrWNf3yRsIkTJ4rAWXrUbbPFdAVdiJcZV24MalbI3ZDmwvR7uhqIwIL4B9ER V+qTHzIvEjoQK0W098oxFxEGvYp9VGr2IXNgl/7zFiR7NItWkxidpLT+kV//Q8FQBmz7 hjMXGsObmE3J2Xd2eN7JSK0UEEmzYU6XwolfAJhMmgdvbew2ht68PlXW86GXXX+noMib qwlwTWKCJ4Jxe5wOq0XsZrx+btNHm/agJd3jYkak5C+BFnJdK4Ns9FHp/obOrBhTdF70 /vcq3eXG/7lmNVPYt6pHuecIPkFA23UWfhqPZX7qo594ezVKrAxcxgsIKjGdxJo9BGLf TjBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=TG61KYYx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id q24-20020aa79838000000b006cba621ba41si6273566pfl.80.2023.11.22.09.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 09:18:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=TG61KYYx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 075A082663FE; Wed, 22 Nov 2023 09:18:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234695AbjKVRSX (ORCPT + 99 others); Wed, 22 Nov 2023 12:18:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232615AbjKVRSV (ORCPT ); Wed, 22 Nov 2023 12:18:21 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF20119D for ; Wed, 22 Nov 2023 09:18:16 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-409299277bbso32322765e9.2 for ; Wed, 22 Nov 2023 09:18:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1700673495; x=1701278295; darn=vger.kernel.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=EhO7+CVm1m1oUE9z/3Z07Nkno2ujdBPUPga6VKMIC2w=; b=TG61KYYxYiZwFVhLw4zA98zhDdQXArTG98dhGxFPk4HoPJBs6obRLQe7VuxqadMPPO eBuoZQJzoWtRBb+QrdgiUTgWx/uwlBOii4L2doWVCnyq0LaU0kZOn4OxP5YoEUReswZ/ MecotTcCxjzQdiFBk34/F4Q8R40jCF4ERuP8nC1nTOQRJKiyu+ivIANYVZPSL++sE/01 jNC8OuObEBaUzqV/Ni3frX/aR4r9BSBEDNe70liP5OgeqWYbusi3HdKo6DOUvVdauS/0 r9v7mzM0StyIFqLR0XQRVws90c2sEH1dD7F4mPpTlTpdm2sRuGtQ1x/yXkUrpEOyPCYv 0C/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700673495; x=1701278295; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=EhO7+CVm1m1oUE9z/3Z07Nkno2ujdBPUPga6VKMIC2w=; b=BvNS1XFTi4GydYyxT1ohEXN+PJImAJkMo4tLnnE+pWTjoo/y8L8iOChJ9Bdvjalu+z ZIQSi6dvRRv4V6d6XJuZTOtxynzCqg7+zbsGUYpbownvywhTQNVSVdHZmysynOvBgr2Y Bs3jrW8vHT64BTBChUD/uWI/Y4RftxMR0+3Jjq8hOGAOaRCeXE4t5k7r00zxB7Ap2ZfS AraWQPiEM2W7H7i2StQgDA2IzFm5fAr6wYm0lbyl0ZlHn+PUA0gcssuazkHKu3O0kTWH Bx79LO9/gl2luYlCTzmt0YOdEh5duYblnVbiOWxiFVRsqSl1v6Bom414iQnWDy1O0aHK 2TRA== X-Gm-Message-State: AOJu0Yx3W8v5dkuzj4/DKo9Zta6UocU5OcCDJVaOU7iwNeh3JD+Dpj53 XnaW6i794cKAi1sNHv800DMA/A== X-Received: by 2002:a05:600c:5102:b0:405:3455:e1a3 with SMTP id o2-20020a05600c510200b004053455e1a3mr2350009wms.17.1700673495188; Wed, 22 Nov 2023 09:18:15 -0800 (PST) Received: from localhost ([2a01:e0a:3c5:5fb1:d0a1:9a3c:4f4b:fa20]) by smtp.gmail.com with ESMTPSA id n5-20020a7bc5c5000000b0040775501256sm8791wmk.16.2023.11.22.09.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 09:18:13 -0800 (PST) References: <20231117125919.1696980-1-jbrunet@baylibre.com> <20231117125919.1696980-3-jbrunet@baylibre.com> <170040994064.269288.960284011884896046.robh@kernel.org> <4608012c-059f-4d6a-914b-e85ad0c32ff0@linaro.org> <1j5y1wg3sb.fsf@starbuckisacylon.baylibre.com> <2e7a65da-5c1d-4dd4-ac69-7559a53afdf3@linaro.org> <1j1qckg21u.fsf@starbuckisacylon.baylibre.com> <94e69281-93e1-41cd-9cf5-81cbbc15572c@linaro.org> <1jwmu9et6j.fsf@starbuckisacylon.baylibre.com> <2bbc2031-89d7-42e9-828e-068fa06eabf4@linaro.org> <1jo7flerag.fsf@starbuckisacylon.baylibre.com> <2d9c4c93-6cea-4a44-9093-c1fd51d0a21c@linaro.org> User-agent: mu4e 1.10.7; emacs 29.1 From: Jerome Brunet To: Krzysztof Kozlowski Cc: Jerome Brunet , neil.armstrong@linaro.org, Rob Herring , JunYi Zhao , devicetree@vger.kernel.org, Rob Herring , Conor Dooley , Kevin Hilman , Thierry Reding , linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-amlogic@lists.infradead.org, Krzysztof Kozlowski Subject: Re: [PATCH v2 2/6] dt-bindings: pwm: amlogic: add new compatible for meson8 pwm type Date: Wed, 22 Nov 2023 17:14:56 +0100 In-reply-to: <2d9c4c93-6cea-4a44-9093-c1fd51d0a21c@linaro.org> Message-ID: <1jjzq9emga.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 22 Nov 2023 09:18:32 -0800 (PST) On Wed 22 Nov 2023 at 16:46, Krzysztof Kozlowski wrote: >>>>> >>>>> Again, where the "v2" is defined? Where is any document explaining the >>>>> mapping between version blocks and SoC parts? Why do you list here only >>>>> major version? Blocks almost always have also minor (e.g. v2.0). >>>> >>>> Again, v2 does has nothing to do with the HW. Never wrote it was. >>>> The HW remains the same. >>> >>> Don't add compatibles which are not related to HW, but represent >>> software versioning. Software does not matter for the bindings. >> >> What I did I explicitly what is recommended in Grant's presentation from >> 2013. 10y old, but I assume slide 10 "Making an incompatible update" is >> still valid. >> >> https://elinux.org/images/1/1e/DT_Binding_Process_glikely_ksummit_2013_10_28.pdf >> >> Breaking the ABI of the old compatible would break all boards which use >> u-boot DT and pass it to the kernel, because the meaning of the clock >> property would change. > > You broke U-Boot now as well - it will get your new DTS from the kernel > and stop working. U-boot will continue to match the old compatible and work properly. When the dts using the new compatible lands in u-boot, it won't match until proper driver support is added. It is a lot better than breaking the ABI, which would have silently broke u-boot. I don't really see a way around that. If you have better way to fix a bad interface, feel free to share it. > >> >> Doing things has suggested in this slide, and this patch, allows every >> device to continue to work properly, whether the DT given is the one >> shipped with u-boot (using the old compatible for now) or the kernel. > > OK, that explains the reasons. I read your commit msg and nothing like > this was mentioned there. What's more, you did not deprecate the old > binding, thus the confusion - it looked like you add entirely new > hardware (although you put "deprecated" but in some unrelated place, not > next to the compatibles). The old interface being obsoleted by the new one is mentionned in the commit description, the comments in the bindings and the bindings itself. Thanks a lot for pointing out the placement mistake. I'll fix it. The commit description says: * What the patch does * Why it does it: * Why the old bindings is bad/broken * How the new ones fixes the problem * Why a single compatible properly describes, IMO, all the related HW. This describes the entirety of what the change does. That seemed clear enough for Rob. If that is not enough for you and you would like it reworded, could please provide a few suggestions ? > > Anyway, the main point of Neil was that you started using generic > compatible for all SoCs, which is wrong as well. I guess this was the > original discussion. The whole reason for this change is to properly describe the HW, which is the 100% same on all the SoCs, or SoC families, concerned. The only reason there was a lot of old compatibles is because it was used to match data in the driver (this is clearly wrong). This data would now be passed through DT. I have been clear about this in the change description. So why is it wrong to have single compatible for a type of device that is 100% the same HW ? It is lot a easier to apply a rule correctly when the intent is clear. > > Best regards, > Krzysztof