mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
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>
This commit is contained in:
parent
4904b6ea1f
commit
d38b4afd51
1 changed files with 1 additions and 3 deletions
|
@ -765,10 +765,8 @@ int phylink_of_phy_connect(struct phylink *pl, struct device_node *dn,
|
||||||
phy_node = of_parse_phandle(dn, "phy-device", 0);
|
phy_node = of_parse_phandle(dn, "phy-device", 0);
|
||||||
|
|
||||||
if (!phy_node) {
|
if (!phy_node) {
|
||||||
if (pl->link_an_mode == MLO_AN_PHY) {
|
if (pl->link_an_mode == MLO_AN_PHY)
|
||||||
netdev_err(pl->netdev, "unable to find PHY node\n");
|
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue