Skip to contentSkip to conversation

net: phy: print warning if usage of deprecated array-style fixed-link binding is detected

PATCH Applied Heiner Kallweit 3 participants 6 messages Sep 12, 2025 – Sep 16, 2025

Subsystems (4)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

v3 cover net: phy: print warning if usage of deprecated array-style fixed-link binding is detected

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.

v2:
- use dedicated printk specifiers
v3:
- add missing newline

Heiner Kallweit (2):
of: mdio: warn if deprecated fixed-link binding is used
net: phylink: warn if deprecated array-style fixed-link binding is
used

 drivers/net/mdio/of_mdio.c | 2 ++
 drivers/net/phy/phylink.c  | 3 +++
 2 files changed, 5 insertions(+)
Signature · 1 line
2.51.0
author maintainer
#1 lore raw

PATCH v3 1/2 of: mdio: warn if deprecated fixed-link binding is used

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.

---
v2:
- use %pOF printk specifier
v3:
- add missing newline

---
 drivers/net/mdio/of_mdio.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/mdio/of_mdio.c +2 -0
index d8ca63ed8..24e03f7a6 100644
@@ -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("%pOF uses deprecated array-style fixed-link binding!\n",
+			     np);
 		status.link = 1;
 		status.duplex = fixed_link_prop[1];
 		status.speed  = fixed_link_prop[2];
Signature · 1 line
2.51.0
author maintainer
#3 lore raw

PATCH v3 2/2 net: phylink: warn if deprecated array-style fixed-link binding is used

In reply to Heiner Kallweit

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.

---
v2:
- use %pfw printk specifier
v3:
- add missing newline

---
 drivers/net/phy/phylink.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/phy/phylink.c +3 -0
index 1988b7d20..0524dcc1b 100644
@@ -702,6 +702,9 @@ static int phylink_parse_fixedlink(struct phylink *pl,
 			return -EINVAL;
 		}
 
+		phylink_warn(pl, "%pfw uses deprecated array-style fixed-link binding!\n",
+			     fwnode);
+
 		ret = fwnode_property_read_u32_array(fwnode, "fixed-link",
 						     prop, ARRAY_SIZE(prop));
 		if (!ret) {
Signature · 1 line
2.51.0
maintainer Reviewed-by on v3 1/2
#2 lore raw

Re: [PATCH net-next v3 1/2] of: mdio: warn if deprecated fixed-link binding is used

In reply to Heiner Kallweit
Quoted 5 lines · Heiner Kallweit

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.

Andrew

maintainer Reviewed-by on v3 2/2
#4 lore raw

Re: [PATCH net-next v3 2/2] net: phylink: warn if deprecated array-style fixed-link binding is used

In reply to Heiner Kallweit
Quoted 5 lines · Heiner Kallweit

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.

Andrew

#5 lore raw
In reply to Heiner Kallweit
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 10 lines · On Fri, 12 Sep 2025 21:05:11 +0200 you wrote:

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.

v2:
- use dedicated printk specifiers
v3:
- add missing newline

[...]

Here is the summary with links:
- [net-next,v3,1/2] of: mdio: warn if deprecated fixed-link binding is used

    https://git.kernel.org/netdev/net-next/c/a8ebee579e7e
  - [net-next,v3,2/2] net: phylink: warn if deprecated array-style fixed-link binding is used
    https://git.kernel.org/netdev/net-next/c/4689a4290429

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html