Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2307387rwd; Fri, 26 May 2023 05:02:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7HzIYF8chOBuwX8XDPfi+JhWfSRcysxqe9l7GSuRET5R+P9pMsEWbrUjeusujZkPZ2aG8Q X-Received: by 2002:a17:903:11c3:b0:1ac:8717:d436 with SMTP id q3-20020a17090311c300b001ac8717d436mr2541762plh.60.1685102538689; Fri, 26 May 2023 05:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685102538; cv=none; d=google.com; s=arc-20160816; b=kYM3zimHg1l6PPyRxPSrx3zBUZI08uqkyxNz4qxAY5UqtNWv4rBPOUo+nSCsvVHs/i dd4JnPcbVXBj3iUE0EqJ4cg9V0cdESLJw2WNTaH2OJAAGwY+TA/7n0ybFQQYulr+3Cv0 02SnMw6N34A3iTxlaWlWV81YOaekAZNSxJkhLPixbgeJDZVZpbwQcAaVdqEKNkQ88PDO 8IVP5yPySrlGzZily3ikzBXNZXsW+XUlgym2oycE4T04Qvskddm8iT2poPtS2QQ4q43h z1PFAZNfSLq5wKz/AaoAdjZNj9/sAsZIDsH8MjBWpHNFZCnc2+2/XH94er9Etp8TjMuK 2y8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lYuy1LD8bWujUTSaX1+mmd0Ol6dxdh+UWPikKfhDyxQ=; b=yIC56rIvW9th4HXXnmGAWcl9pQCLPzumYIFOB2OWkKrF3B/Y2o6MJCIjVeRmSEpitn 501VehBM8CfwfEeRek/dJteWhPSMPJZ+b0Byu92eIfC1V/CKMeC/3v4lgU3bb4i2eCF3 TvTb9Do53XT6Rkm4ZSqpUqYgo6SV4oXCdIfUU/KDwXBVk7Zdl2uy2xzPSiSDiWrS+gdm ZAFPrL85wjpQAC/faQQVwQvY8B6K+FEQELY6Rcm+8O5TdSHrOwncM67pwKvg1o9vTZT0 gD4RnutIVtLwCpHtmjpGGJkYfktc6M/DmXb/V3xPXgkAqUtbZvifLSDmkfn8vUnF5zTj 5fDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=CEY8WoPF; 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=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bi2-20020a170902bf0200b001aae90dbcc1si3665429plb.225.2023.05.26.05.01.47; Fri, 26 May 2023 05:02:18 -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=@microchip.com header.s=mchp header.b=CEY8WoPF; 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=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230063AbjEZLkI (ORCPT + 99 others); Fri, 26 May 2023 07:40:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243395AbjEZLkF (ORCPT ); Fri, 26 May 2023 07:40:05 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A59DA7; Fri, 26 May 2023 04:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1685101205; x=1716637205; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=lYuy1LD8bWujUTSaX1+mmd0Ol6dxdh+UWPikKfhDyxQ=; b=CEY8WoPFrtzFWPttZ0L/VkL86EyQxG59XUHPWmLNED8xdw93HBL7U+TE 4wmi1G3Sgd8WP4HKuNwmBiBIK7IcPL9IspY58Yz3RGpieYrYh7eR7jcFo QkshciaVTXWOKJKmdTiF8egqBqsJLoZ0hhOEklg3zU3CRNu61p97mWICJ 33uqkSJa9llGWIW0hNURMTKlwqvuswQ/SMlehaCkPqYLjBCJVJfpGII/W 5vSaKj9WygfVXjh6VkYYKgHDxu8nwamSGjVO+sxa81V0H4hletc73iyFZ WB307kGJTiPDvwM4ejxfkb6FLrVQhnyE7aLaNrpTbFExZgaiEpVOwrGyF w==; X-IronPort-AV: E=Sophos;i="6.00,194,1681196400"; d="asc'?scan'208";a="215607885" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 26 May 2023 04:40:04 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 26 May 2023 04:40:02 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Fri, 26 May 2023 04:40:00 -0700 Date: Fri, 26 May 2023 12:39:37 +0100 From: Conor Dooley To: Alexandre Mergnat CC: Conor Dooley , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Chen-Yu Tsai , Markus Schneider-Pargmann , , , , , Subject: Re: [PATCH v2 1/2] dt-bindings: clock: mediatek: replace unusable clock Message-ID: <20230526-acorn-unwound-34816283b187@wendy> References: <20230517-fix-clk-index-v2-0-1b686cefcb7e@baylibre.com> <20230517-fix-clk-index-v2-1-1b686cefcb7e@baylibre.com> <20230525-snuggle-twine-ed1bfc2aee51@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ia81GYyjYwkAUf9K" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 --ia81GYyjYwkAUf9K Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 26, 2023 at 10:54:04AM +0200, Alexandre Mergnat wrote: > On 25/05/2023 19:51, Conor Dooley wrote: > > On Thu, May 25, 2023 at 04:50:27PM +0200, Alexandre Mergnat wrote: > > > The =E2=80=9Cmcu_pm_bclk_ck_cg=E2=80=9D clock is used by co-processor= s and should not be > > > added to the kernel driver, otherwise the CPU just halt and the board= is > > > rebooted by the wathdog. > > >=20 > > > Instead, add the "aes_top0_bclk_ck_cg" missing clock to prevent > > > re-shuffling index and then preserve the ABI. > >=20 > > How does this preserve the ABI exactly? Please describe exactly what you > > mean by that. >=20 > I mean that reduce the impact of the change compared to the v1 where I've > changed the index of the following defines to be clean. Oh, you can't do that at all as you probably discovered! > > Also, what about any other users of these definitions, outside of Linux? >=20 > The clock driver and bindings are only a couple of kernel versions old, I= 'm > pretty sure no one is using it. Pretty sure, or sure? > Also, if someone use CLK_IFR_MCU_PM_BK > define, I'm wondering how his CPU is working since Mediatek told me that > shouldn't be used, and after some try, I confirm. Maybe that person is actually using the index to make sure that the clock at that index is left untouched. > I've a question: If something is wrong in the binding, you don't fix it to > avoid ABI change ? I don't quite get what you mean by "wrong". These header files just define a set of arbitrary meanings, since the clock numbers are really just something that developers came up with rather than being lifted =66rom a TRM. They don't prescribe behaviour for each of these clocks, or that these clocks should actually be used - just a simple "this number means this clock". It sounds more like a driver or devicetree is _using_ the number incorrectly, but that does not make the binding wrong :) > TBH, I just try to clean the binding. I can fix the driver index issue > (patch 2/2) without fixing the binding if you prefer. But IMHO, keep an > unusable define isn't great... I, at least, would prefer that. Thanks, Conor. --ia81GYyjYwkAUf9K Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZHCaeQAKCRB4tDGHoIJi 0ljiAQDW7cAtkJiUVftFCHctuq0rAX7Y8PATQhIkWAgesm/55QEAgD3TxCEUtXrf 7eREpLfSvnpwJMHbf49qtnOj7Rw29gQ= =PFKY -----END PGP SIGNATURE----- --ia81GYyjYwkAUf9K--