Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c88838ce authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

net: phy: update port type for MoCA PHYs



MoCA PHYs are using coaxial (BNC-like) connectors, update the
transceiver port type when replying to ethtool.

Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fd70f72c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -305,6 +305,9 @@ int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd)

	ethtool_cmd_speed_set(cmd, phydev->speed);
	cmd->duplex = phydev->duplex;
	if (phydev->interface == PHY_INTERFACE_MODE_MOCA)
		cmd->port = PORT_BNC;
	else
		cmd->port = PORT_MII;
	cmd->phy_address = phydev->addr;
	cmd->transceiver = phy_is_internal(phydev) ?