提交 d38b4afd 编写于 作者: F Florian Fainelli 提交者: David S. Miller

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: NFlorian Fainelli <f.fainelli@gmail.com>
Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4904b6ea
...@@ -765,10 +765,8 @@ int phylink_of_phy_connect(struct phylink *pl, struct device_node *dn, ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册