Commit dd749a3c authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

Merge branch...

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

Heiner Kallweit says:

====================
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.
====================

Link: https://patch.msgid.link/b36f459f-958a-455e-9687-33da56e8b3b6@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parents 17a0374b 4689a429
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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];
+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) {