Skip to content

Commit 4be11ef

Browse files
ffainellidavem330
authored andcommitted
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>
1 parent 1ac63e3 commit 4be11ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/net/phy/phylink.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,10 @@ struct phylink *phylink_create(struct net_device *ndev,
556556
pl->netdev = ndev;
557557
pl->phy_state.interface = iface;
558558
pl->link_interface = iface;
559-
pl->link_port = PORT_MII;
559+
if (iface == PHY_INTERFACE_MODE_MOCA)
560+
pl->link_port = PORT_BNC;
561+
else
562+
pl->link_port = PORT_MII;
560563
pl->link_config.interface = iface;
561564
pl->link_config.pause = MLO_PAUSE_AN;
562565
pl->link_config.speed = SPEED_UNKNOWN;

0 commit comments

Comments
 (0)