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: 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
1ac63e392e
commit
4be11ef0bd
@ -556,7 +556,10 @@ struct phylink *phylink_create(struct net_device *ndev,
|
||||
pl->netdev = ndev;
|
||||
pl->phy_state.interface = iface;
|
||||
pl->link_interface = iface;
|
||||
pl->link_port = PORT_MII;
|
||||
if (iface == PHY_INTERFACE_MODE_MOCA)
|
||||
pl->link_port = PORT_BNC;
|
||||
else
|
||||
pl->link_port = PORT_MII;
|
||||
pl->link_config.interface = iface;
|
||||
pl->link_config.pause = MLO_PAUSE_AN;
|
||||
pl->link_config.speed = SPEED_UNKNOWN;
|
||||
|
Loading…
Reference in New Issue
Block a user