diff options
author | Robert Hancock <hancock@sedsystems.ca> | 2019-06-12 01:06:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-15 04:46:45 +0300 |
commit | f30e33bcdab9d541febfb56a04c6bb7d8026accc (patch) | |
tree | 3f5f17e24a6735a682a42eb50725d87c828d263f /drivers/net | |
parent | 9126e75e39e14c357cfb2820abf0733bbc3cd8dc (diff) | |
download | linux-f30e33bcdab9d541febfb56a04c6bb7d8026accc.tar.xz |
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: Robert Hancock <hancock@sedsystems.ca>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/phy/phy_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 03c885ec1f98..53878908adf4 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -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; |