Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8695306rwr; Thu, 11 May 2023 05:10:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7T+dvehzKnedBfg24+HU7UEk80g+YIdGfEYnet5uFtFg00IumzAYgnv4tOX8XXowx7Cil4 X-Received: by 2002:a17:903:1d1:b0:19a:bbd0:c5cc with SMTP id e17-20020a17090301d100b0019abbd0c5ccmr25388522plh.60.1683807035518; Thu, 11 May 2023 05:10:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683807035; cv=none; d=google.com; s=arc-20160816; b=nNXCmXVgrTbdiTHbRODrhLit2SV96btGjY81cFiMFkKOQIWDPkZ2N1H6H9P/QLTzNF wzZNJmHG/VOr2EoXfX8o1hCCOmw+MO99JnLsAPMtfed7Xge0HDxsqQmNNrC50nnViAa1 GmV1Yva2NzVY6Cm8yUX1lVaxlu1Ev2CuAA+YVRNDFadEQDyP6n4joUd+f/bQMe3xCjNT vFBAo8/2VYFjNrI/GgxptmCHaSRSwSTY/gFUpMazg79A9rFFP7PsvGxDVwPxqBsLE5x/ ct9WfkEWDolELwMvgymSythPipExE4TaBM5ZSIm0XlvDkT0ajwbQmXzF+wI7rp0D9EvQ s4EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=EZsOj7BwSS2Fu49rqcySAuko/IL/XNwf7MP6mY1x3m8=; b=d+cf7yjeb9xfF4MKA2sA7Q07zruhRlOayh3izAgn6IyObWnUgwlLpdD/HntQVThNQ/ QurHmIp+ADzQDfeyIixRW3lnavlSf38iVAqKhwkeQ8Vfbwt2PZsYtPgbXu0ibnrvggpb 3Gp9pisV5BLIjloOsdNkGW0iCk1eh55zi8wdtVFSjpdfbFto35d4GtLwwfP2s5J+dHfI g2NA1JguDSp5v72ear+iL99hVW9Nlr6fNlrfVXAweIW/an15eUA9R53MjgqTXKIoIMps oIXH5HvZLAV3y6OLTBXrCQf/SzVMjPDhYGLSJF50RPyOCVI4Wcx6ygCHFsNKluKEXIHs lY0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x15-20020a170902ec8f00b001ac8daed841si7079201plg.646.2023.05.11.05.10.15; Thu, 11 May 2023 05:10:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237519AbjEKLwb (ORCPT + 99 others); Thu, 11 May 2023 07:52:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbjEKLwa (ORCPT ); Thu, 11 May 2023 07:52:30 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCB242680; Thu, 11 May 2023 04:52:29 -0700 (PDT) Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1px4qR-0008QZ-22; Thu, 11 May 2023 11:52:28 +0000 Date: Thu, 11 May 2023 13:50:30 +0200 From: Daniel Golle To: Andrew Lunn Cc: netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , AngeloGioacchino Del Regno Subject: Re: [PATCH 1/8] net: phy: realtek: rtl8221: allow to configure SERDES mode Message-ID: References: <302d982c5550f10d589735fc2e46cf27386c39f4.1683756691.git.daniel@makrotopia.org> <8fdffc76-4b2f-44ea-9800-1e5d3624d94e@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8fdffc76-4b2f-44ea-9800-1e5d3624d94e@lunn.ch> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 11, 2023 at 02:38:19AM +0200, Andrew Lunn wrote: > > +#define RTL8221B_SERDES_OPTION_MODE_2500BASEX_SGMII 0 > > +#define RTL8221B_SERDES_OPTION_MODE_HISGMII_SGMII 1 > > +#define RTL8221B_SERDES_OPTION_MODE_2500BASEX 2 > > So what is 2500BASEX_SGMII? You cannot run SGMII at 2.5G, because > there is no way to repeat a symbol 2.5 times so that a 1G stream takes > up 2.5G bandwidth. The SGMII signalling also does not work at 2.5G. *_MODE_2500BASEX_SGMII means that the PHY will dynamically switch interface mode between 2500Base-X for 2500M links and SGMII for everything else. Setting *_MODE_2500BASEX in contrast to that enabled rate-adapter mode and always uses 2500Base-X no matter what the speed of the link on the TP interface is. I will add a comment explaining that.