net: phy: Add more 1000BaseX support detection
authorRobert Hancock <hancock@sedsystems.ca>
Tue, 11 Jun 2019 22:06:09 +0000 (16:06 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 01:46:45 +0000 (18:46 -0700)
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: Robert Hancock <hancock@sedsystems.ca>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c

index 03c885ec1f9818965b0a186d8eebceb6024fd70b..53878908adf4944ac8671b040fb928de6fb20509 100644 (file)
@@ -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;