Commit 0fade96a authored by Benoit Rat's avatar Benoit Rat Committed by Alessandro Rubini

kernel/wr-nic: Remove annoying warning message asking for the phy

NetworkManager tries to access the phy, so this WARN_ON is
pretty common if the daemon is running. Now we know who is
misbehaving, and the driver can keep silent (disclaimer: this
opinionated message is by Alessandro :)
parent 10c2756c
......@@ -74,7 +74,12 @@ void wrn_phy_write(struct net_device *dev, int phy_id, int location,
struct wrn_ep *ep = netdev_priv(dev);
if (WR_IS_NODE) {
WARN_ON(1); /* SPEC: no access */
/*
* We cannot access the phy from Linux, because the phy
* is managed by the lm32 core. However, network manager
* insists on doing that, so we'd better not warn about it
*/
//WARN_ON(1); /* SPEC: no access */
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment