]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/phy/phy_device.c
net: phy: Add detection of 1000BaseX link mode support
[linux.git] / drivers / net / phy / phy_device.c
index 2c879ba01f35078c2bf2b97a0baf108acff48549..03c885ec1f9818965b0a186d8eebceb6024fd70b 100644 (file)
@@ -1930,6 +1930,9 @@ int genphy_config_init(struct phy_device *phydev)
                if (val & ESTATUS_1000_THALF)
                        linkmode_set_bit(ETHTOOL_LINK_MODE_1000baseT_Half_BIT,
                                         features);
+               if (val & ESTATUS_1000_XFULL)
+                       linkmode_set_bit(ETHTOOL_LINK_MODE_1000baseX_Full_BIT,
+                                        features);
        }
 
        linkmode_and(phydev->supported, phydev->supported, features);