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

Commit f30e33bc authored by Robert Hancock's avatar Robert Hancock Committed by David S. Miller
Browse files

net: phy: Add more 1000BaseX support detection



Commit "net: phy: Add detection of 1000BaseX link mode support" added
support for not filtering out 1000BaseX mode from the PHY's supported
modes in genphy_config_init, but we have to make a similar change in
genphy_read_abilities in order to actually detect it as a supported mode
in the first place. Add this in.

Signed-off-by: default avatarRobert Hancock <hancock@sedsystems.ca>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9126e75e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1984,6 +1984,8 @@ int genphy_read_abilities(struct phy_device *phydev)
				 phydev->supported, val & ESTATUS_1000_TFULL);
		linkmode_mod_bit(ETHTOOL_LINK_MODE_1000baseT_Half_BIT,
				 phydev->supported, val & ESTATUS_1000_THALF);
		linkmode_mod_bit(ETHTOOL_LINK_MODE_1000baseX_Full_BIT,
				 phydev->supported, val & ESTATUS_1000_XFULL);
	}

	return 0;