Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp650450rwb; Tue, 27 Sep 2022 02:44:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6CTSUL6IB088cjg47DD/LhEim0CD8ScfT45ZffU71dhW0mJgHX0xEJM6FKSFZoB0B97765 X-Received: by 2002:a17:902:ec87:b0:176:d549:2f28 with SMTP id x7-20020a170902ec8700b00176d5492f28mr26078326plg.12.1664271867045; Tue, 27 Sep 2022 02:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664271867; cv=none; d=google.com; s=arc-20160816; b=RCuhaQuYkak4RoHcw3bj4NCUIWg7WC9h6Ejwyk797J89OifFjegRFO5yzQ6ccKM/5a Y3b/GbH1XVG2B6mwbpAvL+/szecnWlV/VEf35hSrquKZyuPPIn731cnBEIHKOwUNB9Ew PDk1Clp+hkyyCxKyVh7MYnsvaAgypeuDSQIwqUItIwanAFs4vB/1kkwW67A+lmmW6y11 K8mmBSKT7VdZ9cdUhngPXKtUAHlGV9Y32g/uiFgWy1zfTtT7fidqEJoRK7CbyHgwiqNU BRLXD20vg3f7aVx4GAqO1QbkgrXxjxg4R0KMCHvEOebUvhhW/FcmUkEVHxstxOGGeVlR zy8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=CSa/p/zpHyX4lGO/pfARnTvy0LVC/OySswcI+oOiq+w=; b=kwMIeeEPYa35UaG5JWROzoHYAv0qNnuFXTo49Jqnf5vgihV+QNUkzQNrgjKyDbsaDS bGopjPd5zpnjHY3COvPv3+jGLy/ROgilARit4Wo07PwYhh+yR4LSDFTIgiBdO/b6FVyr ElBWdz2ACim+6sex2jP8KFtZgMagEqD0hW5slkIqF3S6TSZtlU2fobIi30S2QH7Pe+Oz E3Z+Er1R7FWixRnpfxHh3JmrOylzdCLdwALvVhUYbqt9E4Da0R0JJ1q4cs3iCh/QqKjT 53yBCnrY1VTJDIA3sLlj6b2WTo/kJHi85iB1stb0Exo9BfS9jvM6ybb7/UylvsyoEW2R aYag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="o/60iJHr"; 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=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f27-20020a631f1b000000b004394529479asi1336319pgf.128.2022.09.27.02.44.15; Tue, 27 Sep 2022 02:44: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=@mediatek.com header.s=dk header.b="o/60iJHr"; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231247AbiI0IoJ (ORCPT + 99 others); Tue, 27 Sep 2022 04:44:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbiI0IoD (ORCPT ); Tue, 27 Sep 2022 04:44:03 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 986E675CD7; Tue, 27 Sep 2022 01:44:01 -0700 (PDT) X-UUID: 0858ea5688ba4961adf2483bfe49b09e-20220927 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=CSa/p/zpHyX4lGO/pfARnTvy0LVC/OySswcI+oOiq+w=; b=o/60iJHrOk9YoguZchqif/wc6aJLOzd7K7XAhtR4J8THKkgxNZkBVo23xWnuPck2ZpNMAfzwtcWWxWhWT+gTOTKuZvL0V9UqF8UxnmQYsKc9WaF87I+RIBi47y0ZqehxSjidPHgPEazf95yzjyUZvesMN5MroXiWJu/nD/xIBtU=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.11,REQID:fef051df-6ce3-477c-a4d1-2aae656b7669,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:45,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:45 X-CID-INFO: VERSION:1.1.11,REQID:fef051df-6ce3-477c-a4d1-2aae656b7669,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:45,FILE:0,BULK:0,RULE:Release_Ham,ACTION:r elease,TS:45 X-CID-META: VersionHash:39a5ff1,CLOUDID:ccd32907-1cee-4c38-b21b-a45f9682fdc0,B ulkID:2209271643576FUGZFGP,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 0858ea5688ba4961adf2483bfe49b09e-20220927 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 898136717; Tue, 27 Sep 2022 16:43:55 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Tue, 27 Sep 2022 16:43:54 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Tue, 27 Sep 2022 16:43:53 +0800 Message-ID: <5d0980dd11afdd948059bcf9afa2484e5ee97bec.camel@mediatek.com> Subject: Re: [PATCH v5 4/4] net: stmmac: Update the name of property 'clk_csr' From: Jianguo Zhang To: Krzysztof Kozlowski , "AngeloGioacchino Del Regno" , "David S . Miller" , Rob Herring , "Krzysztof Kozlowski" CC: Eric Dumazet , Jakub Kicinski , Paolo Abeni , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , "Matthias Brugger" , Biao Huang , , , , , , Date: Tue, 27 Sep 2022 16:43:53 +0800 In-Reply-To: <4f205f0d-420d-8f51-ad26-0c2475c0decd@linaro.org> References: <20220923052828.16581-1-jianguo.zhang@mediatek.com> <20220923052828.16581-5-jianguo.zhang@mediatek.com> <4f205f0d-420d-8f51-ad26-0c2475c0decd@linaro.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY,URIBL_CSS 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 Dear Krzysztof, Thanks for your comment. On Fri, 2022-09-23 at 20:15 +0200, Krzysztof Kozlowski wrote: > On 23/09/2022 20:14, Krzysztof Kozlowski wrote: > > > This is going to break MT2712e on old devicetrees. > > > > > > The right way of doing that is to check the return value of > > > of_property_read_u32() > > > for "snps,clk-csr": if the property is not found, fall back to > > > the old "clk_csr". > > > > I must admit - I don't care. That's the effect when submitter > > bypasses > > DT bindings review (81311c03ab4d ("net: ethernet: stmmac: add > > management > > of clk_csr property")). > > > > If anyone wants ABI, please document the properties. > > > > If out-of-tree users complain, please upstream your DTS or do not > > use > > undocumented features... > > > > OTOH, as Angelo pointed out, handling old and new properties is quite > easy to achieve, so... :) > So, the conclusion is as following: 1. add new property 'snps,clk-csr' and document it in binding file. 2. parse new property 'snps,clk-csr' firstly, if failed, fall back to old property 'clk_csr' in driver. Is my understanding correct? > Best regards, > Krzysztof > BRS Jianguo