From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77CB6C07E9D for ; Fri, 23 Sep 2022 18:14:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232338AbiIWSON (ORCPT ); Fri, 23 Sep 2022 14:14:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbiIWSOM (ORCPT ); Fri, 23 Sep 2022 14:14:12 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EED1EF8C15 for ; Fri, 23 Sep 2022 11:14:10 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id b6so921576ljr.10 for ; Fri, 23 Sep 2022 11:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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; bh=oMvGRyf6B1xSW6jldiB/4L2hCW2oiTVar6DgwfxZevA=; b=joMXbDUN23NrSPuFVRuQxyZ18+85jHWvFlgB5rHkyQB6MuTQv+11Blst3Emk2PKY+n nQnCehdvxQMvsQA4btPpAyPP7A2rskO/wpWNTd326VLi8qNLiaxtGTsbjoX+ObpiCpJm J0XwvrZycGuZOZVovoupWtzvwrgXa8V/+Stgj+L2zVD5+vIf8S8/dQGNT4ECX7/na9dK 5ZrHOBzj5+T0zFen0C0YlgJjDGjqrrYvSllJnoBgLL1qLQEjpVVCO3efy9H6SOOqBcm7 TV+wstyMe4wWuqQKw6QpkQHV2tLOj0lk3tSZefrxu3+P5luZKiLRGS3ChfdurG1sEBAZ 2YfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=oMvGRyf6B1xSW6jldiB/4L2hCW2oiTVar6DgwfxZevA=; b=RtlJ4rhFeYEduOjoYfg3Lnhe2sa4dHQj5b3ggD1wdQW8hDYObniotzakMolW9ccwB1 EyieKMAodP5aKK3RlmbMH7ZxHWulocMxbXYrTkOHJa1zbQaxjXzXtmP3i8Y8MYhjAIch 1Aie7kDWCgI37qriSaqVwjQOwFEBUSx9fRqBim3gdV6ehsH0jI6fP3bhndoJzhy0Qyxj hzBqVkPsEKmol9b1s3hdzG2gI4ehslTrFPf6SfOQ0P5FLq1oOBdR4enH0BAQCQTv1tBf LzdkDuPbn/ufn8cCrqJwJ8fvFpFqBGmr/YuHTq167AqMOAPjYGnEvABGIq8A7UhKwAwZ rAQg== X-Gm-Message-State: ACrzQf3FQNBw8BZ4E0kq00jVpdev1b5NXmDpgVWCJrNnTkd/YDZlsvyr r7OEulTQBTRnInUAqkzn3eoGbA== X-Google-Smtp-Source: AMsMyM6ZNkXX2AkLZWL390O0wf6Nou5HbOXvCjEuUZ/Qb6dNDl3VBmNR01p6Z/h5HcJXrDEEqprZhA== X-Received: by 2002:a05:651c:19a6:b0:26c:4a66:aa42 with SMTP id bx38-20020a05651c19a600b0026c4a66aa42mr3624111ljb.231.1663956849278; Fri, 23 Sep 2022 11:14:09 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id d8-20020a056512368800b004a0526b11ffsm415225lfs.133.2022.09.23.11.14.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Sep 2022 11:14:08 -0700 (PDT) Message-ID: Date: Fri, 23 Sep 2022 20:14:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v5 4/4] net: stmmac: Update the name of property 'clk_csr' Content-Language: en-US To: AngeloGioacchino Del Regno , Jianguo Zhang , "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 , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20220923052828.16581-1-jianguo.zhang@mediatek.com> <20220923052828.16581-5-jianguo.zhang@mediatek.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 23/09/2022 11:10, AngeloGioacchino Del Regno wrote: > Il 23/09/22 07:28, Jianguo Zhang ha scritto: >> Update the name of property 'clk_csr' as 'snps,clk-csr' to align with >> the property name in the binding file. >> >> Signed-off-by: Jianguo Zhang >> --- >> drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c >> index 9f5cac4000da..18f9952d667f 100644 >> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c >> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c >> @@ -444,7 +444,7 @@ stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac) >> * or get clk_csr from device tree. >> */ >> plat->clk_csr = -1; >> - of_property_read_u32(np, "clk_csr", &plat->clk_csr); >> + of_property_read_u32(np, "snps,clk-csr", &plat->clk_csr); > > 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... Best regards, Krzysztof