From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Jianguo Zhang <jianguo.zhang@mediatek.com>,
"David S . Miller" <davem@davemloft.net>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Giuseppe Cavallaro <peppe.cavallaro@st.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Jose Abreu <joabreu@synopsys.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
Biao Huang <biao.huang@mediatek.com>,
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
Subject: Re: [PATCH v5 4/4] net: stmmac: Update the name of property 'clk_csr'
Date: Fri, 23 Sep 2022 11:10:49 +0200 [thread overview]
Message-ID: <e0fa3ddf-575d-9e25-73d8-e0858782b73f@collabora.com> (raw)
In-Reply-To: <20220923052828.16581-5-jianguo.zhang@mediatek.com>
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 <jianguo.zhang@mediatek.com>
> ---
> 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".
Regards,
Angelo
>
> /* "snps,phy-addr" is not a standard property. Mark it as deprecated
> * and warn of its use. Remove this when phy node support is added.
next prev parent reply other threads:[~2022-09-23 9:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-23 5:28 [PATCH v5 0/4] Mediatek ethernet patches for mt8188 Jianguo Zhang
2022-09-23 5:28 ` [PATCH v5 1/4] dt-bindings: net: mediatek-dwmac: add support " Jianguo Zhang
2022-09-23 5:28 ` [PATCH v5 2/4] dt-bindings: net: snps,dwmac: add clk_csr property Jianguo Zhang
2022-09-23 18:11 ` Krzysztof Kozlowski
2022-09-27 8:49 ` Jianguo Zhang
2022-09-23 5:28 ` [PATCH v5 3/4] arm64: dts: mediatek: mt2712e: Update the name of property 'clk_csr' Jianguo Zhang
2022-09-23 5:28 ` [PATCH v5 4/4] net: stmmac: " Jianguo Zhang
2022-09-23 9:10 ` AngeloGioacchino Del Regno [this message]
2022-09-23 18:14 ` Krzysztof Kozlowski
2022-09-23 18:15 ` Krzysztof Kozlowski
2022-09-27 8:43 ` Jianguo Zhang
2022-09-27 8:44 ` Jianguo Zhang
2022-09-27 10:44 ` AngeloGioacchino Del Regno
2022-09-28 7:17 ` Krzysztof Kozlowski
2022-09-28 7:40 ` Jianguo Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e0fa3ddf-575d-9e25-73d8-e0858782b73f@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=alexandre.torgue@foss.st.com \
--cc=biao.huang@mediatek.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=jianguo.zhang@mediatek.com \
--cc=joabreu@synopsys.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=matthias.bgg@gmail.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=peppe.cavallaro@st.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox