From patchwork Thu Nov 18 18:07:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King (Oracle)" X-Patchwork-Id: 12627453 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1180FC433EF for ; Thu, 18 Nov 2021 18:07:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DF8946126A for ; Thu, 18 Nov 2021 18:07:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231176AbhKRSKK (ORCPT ); Thu, 18 Nov 2021 13:10:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhKRSKK (ORCPT ); Thu, 18 Nov 2021 13:10:10 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95417C061574 for ; Thu, 18 Nov 2021 10:07:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Date:Sender:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Hp3d1Eb76xj+eIbQf7jC32aXQhU5l7M+Jkz+szJjcr0=; b=YKCCFNZiZSXMAOyek3+7fAEdCQ ZOiz22T5NbZKIJkB6e+CjO4InxAbsnTC4i+nUnsRb6DXp6m/ewa8A5thFYfVEcZkdDTiWicCBv/sK iPIa/JdQvm5q0DiQE9plevYuMcgYkW0mNkQyjN9lciKIpTjy8vuWtETfaEjcHtbc9qHH9V9V+kJQ7 iHTH91ownHD28OezzTc6a1aKp97F9HEK6Xx8p15wWHolrJPYMdSOjStfayErj9nrStl9OrmPtgyN0 MQqhz1tLeFj4GqKNzV+kJ6Bi/loMe8WNgjnMdk8/Wn0d1iHsq167KAmm+QH1xamHf79qUbj4XctfB 86hA7KzQ==; Received: from e0022681537dd.dyn.armlinux.org.uk ([fd8f:7570:feb6:1:222:68ff:fe15:37dd]:53030 helo=rmk-PC.armlinux.org.uk) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mnloR-0003D7-9v; Thu, 18 Nov 2021 18:07:07 +0000 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1mnloQ-008LYK-Rp; Thu, 18 Nov 2021 18:07:06 +0000 From: "Russell King (Oracle)" To: Andrew Lunn , Heiner Kallweit Cc: "David S. Miller" , netdev@vger.kernel.org, Jakub Kicinski Subject: [PATCH net-next] net: phylink: add 1000base-KX to phylink_caps_to_linkmodes() MIME-Version: 1.0 Content-Disposition: inline Message-Id: Sender: Russell King Date: Thu, 18 Nov 2021 18:07:06 +0000 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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) --- 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); }