From: Heiner Kallweit <hkallweit1@gmail.com>
To: Russell King - ARM Linux <linux@armlinux.org.uk>,
Andrew Lunn <andrew@lunn.ch>, Andrew Lunn <andrew+netdev@lunn.ch>,
Paolo Abeni <pabeni@redhat.com>, Jakub Kicinski <kuba@kernel.org>,
Eric Dumazet <edumazet@google.com>,
David Miller <davem@davemloft.net>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: [PATCH net-next 1/2] of: mdio: warn if deprecated fixed-link binding is used
Date: Tue, 9 Sep 2025 21:15:35 +0200 [thread overview]
Message-ID: <d2910abd-a20c-49f3-ac1f-ff9274ed75d7@gmail.com> (raw)
In-Reply-To: <964df2db-082b-4977-b4c9-fbdcfc902f9e@gmail.com>
The array-style fixed-link binding has been marked deprecated for more
than 10 yrs, but still there's a number of users. Print a warning when
usage of the deprecated binding is detected.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/net/mdio/of_mdio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/mdio/of_mdio.c b/drivers/net/mdio/of_mdio.c
index d8ca63ed8..d35e28dbe 100644
--- a/drivers/net/mdio/of_mdio.c
+++ b/drivers/net/mdio/of_mdio.c
@@ -447,6 +447,8 @@ int of_phy_register_fixed_link(struct device_node *np)
/* Old binding */
if (of_property_read_u32_array(np, "fixed-link", fixed_link_prop,
ARRAY_SIZE(fixed_link_prop)) == 0) {
+ pr_warn_once("%s uses deprecated array-style fixed-link binding!",
+ of_node_full_name(np));
status.link = 1;
status.duplex = fixed_link_prop[1];
status.speed = fixed_link_prop[2];
--
2.51.0
next prev parent reply other threads:[~2025-09-09 19:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-09 19:14 [PATCH net-next 0/2] net: phy: print warning if usage of deprecated array-style fixed-link binding is detected Heiner Kallweit
2025-09-09 19:15 ` Heiner Kallweit [this message]
2025-09-09 21:25 ` [PATCH net-next 1/2] of: mdio: warn if deprecated fixed-link binding is used Andrew Lunn
2025-09-11 6:34 ` Krzysztof Kozlowski
2025-09-09 19:16 ` [PATCH net-next 2/2] net: phylink: warn if deprecated array-style " Heiner Kallweit
2025-09-09 21:27 ` Andrew Lunn
2025-09-10 6:29 ` Heiner Kallweit
2025-09-11 6:34 ` Krzysztof Kozlowski
2025-09-11 16:28 ` Heiner Kallweit
2025-09-11 16:44 ` Andrew Lunn
2025-09-11 16:58 ` Heiner Kallweit
2025-09-11 18:16 ` Krzysztof Kozlowski
2025-09-11 7:22 ` [PATCH net-next 0/2] net: phy: print warning if usage of deprecated array-style fixed-link binding is detected Heiner Kallweit
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=d2910abd-a20c-49f3-ac1f-ff9274ed75d7@gmail.com \
--to=hkallweit1@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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