From f554a8e49f1c506a110eb222a8cf0e54329f9659 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Thu, 13 Oct 2022 10:23:54 -0600 Subject: [PATCH] net: phylink: add 1000base-KX to phylink_caps_to_linkmodes() Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2071844 Depends: https://bugzilla.redhat.com/show_bug.cgi?id=2121508 Tested: This is one of a series of patch sets to enable Arm SystemReady IR support in the kernel for NXP i.MX8 platforms. This set cleans up PHY handling for imx8m (and Tegra) in drivers/phy. This set has been tested via simple boot tests, and of course the CI loop. If the PHYs are not working, their devices aren't; everything appears to be working just fine. commit ec574d9ee5d2e74c913cb3e927e7706be7bfb64d Author: Russell King (Oracle) Date: Thu Nov 18 18:07:06 2021 +0000 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) Signed-off-by: David S. Miller (cherry picked from commit ec574d9ee5d2e74c913cb3e927e7706be7bfb64d) Signed-off-by: Al Stone --- drivers/net/phy/phylink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index f7156b6868e7..da17b874a5e7 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); }