Skip to contentSkip to conversation

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

PATCH Superseded Heiner Kallweit 3 participants 7 messages Sep 11, 2025 – Sep 12, 2025

Subsystems (4)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

v2 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

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 v2 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

---
 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!",
+			     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 v2 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

---
 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!",
+			     fwnode);
+
 		ret = fwnode_property_read_u32_array(fwnode, "fixed-link",
 						     prop, ARRAY_SIZE(prop));
 		if (!ret) {
Signature · 1 line
2.51.0
#4 lore raw

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

Quoted 17 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.

---
v2:
- use %pfw printk specifier

---
 drivers/net/phy/phylink.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/phy/phylink.c +0 -0
index 1988b7d20..0524dcc1b 100644

drivers/net/phy/phylink.c static int phylink_parse_fixedlink(struct phylink *pl, · line 705

Quoted 4 lines
drivers/net/phy/phylink.c +1 -0
@@ -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 at the end of a kernel message string is normal.

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
#2 lore raw

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

In reply to Heiner Kallweit
Quoted 17 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.

---
v2:
- use %pOF printk specifier

---
 drivers/net/mdio/of_mdio.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/mdio/of_mdio.c +0 -0
index d8ca63ed8..24e03f7a6 100644

drivers/net/mdio/of_mdio.c int of_phy_register_fixed_link(struct device_node *np) · line 450

Quoted 4 lines
drivers/net/mdio/of_mdio.c +1 -0
@@ -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!",

Ditto.

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
author maintainer
#5 lore raw
In reply to Heiner Kallweit
Quoted 7 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.

v2:
- use dedicated printk specifiers

Quoted 9 lines

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(+)

--
pw-bot: cr

maintainer
#6 lore raw
Quoted 13 lines · On Fri, 12 Sep 2025 07:31:19 +0200 Heiner Kallweit wrote:
Quoted 12 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.

v2:
- use dedicated printk specifiers

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

Quoted 6 lines
Quoted 4 lines
 drivers/net/mdio/of_mdio.c | 2 ++
 drivers/net/phy/phylink.c  | 3 +++
 2 files changed, 5 insertions(+)

--
pw-bot: cr

This was already discarded from PW by the time you send this. Please note:

Quoting documentation:

Updating patch status
~~~~~~~~~~~~~~~~~~~~~
[...]
The use of the bot is entirely optional, if in doubt ignore its existence completely. Maintainers will classify and update the state of the patches themselves. No email should ever be sent to the list with the main purpose

              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

of communicating with the bot, the bot commands should be seen as metadata. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [...]
See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#updating-patch-status