Commit 4be11ef0 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

net: phy: phylink: Report MoCA as PORT_BNC

Similarly to what PHYLIB already does, make sure that
PHY_INTERFACE_MODE_MOCA is reported as PORT_BNC.
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1ac63e39
...@@ -556,6 +556,9 @@ struct phylink *phylink_create(struct net_device *ndev, ...@@ -556,6 +556,9 @@ struct phylink *phylink_create(struct net_device *ndev,
pl->netdev = ndev; pl->netdev = ndev;
pl->phy_state.interface = iface; pl->phy_state.interface = iface;
pl->link_interface = iface; pl->link_interface = iface;
if (iface == PHY_INTERFACE_MODE_MOCA)
pl->link_port = PORT_BNC;
else
pl->link_port = PORT_MII; pl->link_port = PORT_MII;
pl->link_config.interface = iface; pl->link_config.interface = iface;
pl->link_config.pause = MLO_PAUSE_AN; pl->link_config.pause = MLO_PAUSE_AN;
......
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