Commit 4689a429 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Jakub Kicinski
Browse files

net: phylink: warn if deprecated array-style 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.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/cc823d38-2a2c-4c83-9a27-d7f25d61a2de@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a8ebee57
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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) {