net: phy: print warning if usage of deprecated array-style fixed-link binding is detected
Subsystems (4)
Heiner Kallweit
maintainerv3 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
Heiner Kallweit
maintainerPATCH 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
@@ -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
Heiner Kallweit
maintainerPATCH v3 2/2 net: phylink: warn if deprecated array-style fixed-link binding is used
In reply to Heiner KallweitThe 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
@@ -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
Re: [PATCH net-next v3 1/2] of: mdio: warn if deprecated fixed-link binding is used
In reply to Heiner KallweitQuoted 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.
Signed-off-by Heiner Kallweit <[email protected]>
Andrew
Re: [PATCH net-next v3 2/2] net: phylink: warn if deprecated array-style fixed-link binding is used
In reply to Heiner KallweitQuoted 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.
Signed-off-by Heiner Kallweit <[email protected]>
Andrew
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