Skip to content

Commit d38b4af

Browse files
ffainellidavem330
authored andcommitted
net: phy: phylink: Remove error message
Some subsystems like DSA may be trying to connect to a PHY through OF first, and then attempt a connect using a local MDIO bus, remove the error message: "unable to find PHY node" so we can let MAC drivers whether to print it or not. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4904b6e commit d38b4af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/phy/phylink.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -765,10 +765,8 @@ int phylink_of_phy_connect(struct phylink *pl, struct device_node *dn,
765765
phy_node = of_parse_phandle(dn, "phy-device", 0);
766766

767767
if (!phy_node) {
768-
if (pl->link_an_mode == MLO_AN_PHY) {
769-
netdev_err(pl->netdev, "unable to find PHY node\n");
768+
if (pl->link_an_mode == MLO_AN_PHY)
770769
return -ENODEV;
771-
}
772770
return 0;
773771
}
774772

0 commit comments

Comments
 (0)