diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2021-11-18 18:00:33 +0000 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-01-12 11:04:59 +0000 |
commit | eba82e74e0aa24b1a952e139e5191ca54ed162f8 (patch) | |
tree | e3d1670c7e87383af6a23bbc732051f8e2df6b3c /drivers | |
parent | 7d67c835bf5809317aa26fa47929553df23752eb (diff) |
net: phylink: add 1000base-KX to phylink_caps_to_linkmodes()
1000base-KX was missed in phylink_caps_to_linkmodes(), add it. This
will be necessary to convert stmmac with xpcs to ensure we don't drop
any supported linkmodes.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/phy/phylink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index ae9b9c352053..44b195c4f79d 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -197,6 +197,7 @@ static void phylink_caps_to_linkmodes(unsigned long *linkmodes, if (caps & MAC_1000FD) { __set_bit(ETHTOOL_LINK_MODE_1000baseT_Full_BIT, linkmodes); + __set_bit(ETHTOOL_LINK_MODE_1000baseKX_Full_BIT, linkmodes); __set_bit(ETHTOOL_LINK_MODE_1000baseX_Full_BIT, linkmodes); __set_bit(ETHTOOL_LINK_MODE_1000baseT1_Full_BIT, linkmodes); } |