From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA61AC433DB for ; Thu, 25 Mar 2021 09:06:31 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 555BD61A1E for ; Thu, 25 Mar 2021 09:06:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 555BD61A1E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=em+adrnmK2COv2jkbMf1yX0Ub4M4LEfFDXq7kegbQ6E=; b=qapVbOlAQJoBYWW5x/LNae+NK ARuE+yYCArmXnJJcxwJPVGl5FTsVhBkjFOg4iaDClVerCPkpf/lkr/mpzaD9hqmmJxpmOylsyZQdT PNujUvDNmLjI7voodc3GuMpfnYHksvMvF4lelAK7wdDgWaAwSSBnAlCLxxGJQRRdI2AWxRbdvVAVM HktT5OjLflf2Fu8lZqGy343OQskwBgQPDO4ZBqXyNiQtauHqOUEi0yFdJSxyVv8lEhOJw3Jd8ph81 nKPXsmN0B7+NbOuVpq1nZL58Nb/2rj8D0RQ6G/T+7kUMVkNVqnlD1nC1oq9LJz7miwaNTZP4jgt9V nCcIm8acA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lPLur-0010ch-Vf; Thu, 25 Mar 2021 09:04:34 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lPLst-000zXa-UA for linux-arm-kernel@lists.infradead.org; Thu, 25 Mar 2021 09:02:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=YSMq9K94SLMNFk6Q3E9dbxOo81Ihzvj6PbV9ppKeRHo=; b=mL5eEQ85y+GHxmHEaDsecPFYY m5ssBOR51oWbueT4dvzHRMp4WWe2Y30EgpGawMsc3VkUxA6MQUuNLdvroWpddKI9TCEgKEXVn4moz yWup6vpz185Wzn8rSeFuXsf6BabGxj7WjrttETRAwKvdvhwQr6RSfD29jp5Sj62JaFCCrBMDs4ckA RIVTzKtdIj7f5+lZrb1L2os+5sUScVkacrjqLvVJVBIGGWA+Nsq7hSm/Wy7E9ooTSIghJU1KnMoub 0q3ZpOQC+DKE22yELVoUgBEZbiFeCksnutuNBhkp8yu+tX5+sKyDhxkQeq176RUGXQoJP3ewweLr/ vU6XWMdqA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:51708) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lPLpa-0001Sm-Nv; Thu, 25 Mar 2021 08:59:06 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lPLpX-0005t4-2i; Thu, 25 Mar 2021 08:59:03 +0000 Date: Thu, 25 Mar 2021 08:59:03 +0000 From: Russell King - ARM Linux admin To: Michael Sit Wei Hong Cc: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, davem@davemloft.net, kuba@kernel.org, mcoquelin.stm32@gmail.com, weifeng.voon@intel.com, boon.leong.ong@intel.com, qiangqing.zhang@nxp.com, vee.khee.wong@intel.com, fugang.duan@nxp.com, kim.tatt.chuah@intel.com, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, andrew@lunn.ch, hkallweit1@gmail.com Subject: Re: [PATCH net-next v3 2/2] net: pcs: configure xpcs 2.5G speed mode Message-ID: <20210325085902.GK1463@shell.armlinux.org.uk> References: <20210325083806.19382-1-michael.wei.hong.sit@intel.com> <20210325083806.19382-3-michael.wei.hong.sit@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210325083806.19382-3-michael.wei.hong.sit@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210325_090235_619571_EC57D352 X-CRM114-Status: GOOD ( 12.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Mar 25, 2021 at 04:38:06PM +0800, Michael Sit Wei Hong wrote: > diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c > index 12a047d47dec..c95dfe4e5310 100644 > --- a/drivers/net/phy/phylink.c > +++ b/drivers/net/phy/phylink.c > @@ -290,6 +290,8 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode) > > switch (pl->link_config.interface) { > case PHY_INTERFACE_MODE_SGMII: > + phylink_set(pl->supported, 2500baseT_Full); > + fallthrough; This is wrong. "SGMII" here means 1G SGMII. See the documentation in Documentation/networking/phy.rst. If we want to have this at 2.5G speed, then we need a separate enumeration for that mode, just like we make a distinction between 1000BASE-X and 2500BASE-X. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel