Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8694910rwr; Thu, 11 May 2023 05:10:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5jy9IRhUTf8Do13HfBu6PlQDq5yjgBIX/g0ZyvnUvzJ8dxJ1jsltz1Jk0QdFRKzKbOwSuz X-Received: by 2002:a17:902:bb8c:b0:1a1:ee8c:eef5 with SMTP id m12-20020a170902bb8c00b001a1ee8ceef5mr18189708pls.7.1683807020270; Thu, 11 May 2023 05:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683807020; cv=none; d=google.com; s=arc-20160816; b=XP39OYoWHDk4E1Gxhqbm+BHbfYXmgjmEE428h40ahtnBc5iRQUtnT8j2xM42QjVQ82 RmATscYKMSuAoVqFCh9aBgzuQ+dFR391abbG/gDkzGX8C0Q6nUj6QHg8ZUccEaHHCIUC uQG+a0ZSEjC7WfUPFbW8pAkelM5rB5Qu9yk32AvKiRQOpU6fej4VdpBsbagZpuUyiizG E38dMPIfrFV/gNYib9koiZSe5M87qWQcqxWkGcLey5HCWnUWDXle3wnxGoof9SFBKTfa yTgsdCYZpcx/rWDeBh4jsXTfpdrwbFKqH7n1W2cQSI7Fmg4eKwjfEr9rvVbZDcWjxF3Q 1EPw== 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=QiI3YyVCMFXftJf0W5Ev9nEaPYQlV/GKDtAL3CGxoZc=; b=wsnkr4OK6muqQfrfaWBt8IB0uzf0VVJWUj65n63SLYhOqkpIXOwJQsJGpPv12kVxPu sOXBo9+Cv3iSFLfU/RnbFxOWcD1VQzdCnEVzKAO0Dcb+wY1yDpRUw9+TvmOzvrxYYD0L eHqU9semUKU/2zSqIhZOPNCZnDxeK2FoJ22aieFFhryk47knW1iyyAaiP4XaiDfmpBlY edC/B43jnq2q1s031em9Pbp+V8q8bSMtdGHtk4UbM9zNxRSNHzwrMYOdV9MpmP9xV7dd icGCUZmzef/Kjyi2BYs1dUrLanUtUrx8PJ0xs5lVnES6WQMoPFV5KYnF58e9ZalC0HL2 jWvQ== 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 a20-20020a170902b59400b001ac815f653asi6197070pls.348.2023.05.11.05.10.02; Thu, 11 May 2023 05:10:20 -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 S237233AbjEKLqt (ORCPT + 99 others); Thu, 11 May 2023 07:46:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237195AbjEKLqr (ORCPT ); Thu, 11 May 2023 07:46:47 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C7AF2D42; Thu, 11 May 2023 04:46:46 -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 1px4ks-0008OX-25; Thu, 11 May 2023 11:46:42 +0000 Date: Thu, 11 May 2023 13:44:48 +0200 From: Daniel Golle To: Heiner Kallweit Cc: netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Lunn , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , AngeloGioacchino Del Regno Subject: Re: [PATCH net-next 0/8] Improvements for RealTek 2.5G Ethernet PHYs Message-ID: References: <018df89a-c3d2-1bda-9966-7f06b24f87f2@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <018df89a-c3d2-1bda-9966-7f06b24f87f2@gmail.com> 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 07:29:21AM +0200, Heiner Kallweit wrote: > On 11.05.2023 00:53, Daniel Golle wrote: > > Improve support for RealTek 2.5G Ethernet PHYs (RTL822x series). > > The PHYs can operate with Clause-22 and Clause-45 MDIO. > > [...] > > Has this series been tested with RTL8125A/B to ensure that the internal > PHY use case still works? The series has been present in OpenWrt for a while now and initially contained a bug which broke the RTL8221 PCIe RealTek NICs. It has since been resolved and re-tested, and it seems all fine: https://github.com/openwrt/openwrt/commit/998b9731577dedc7747dcfa412e4543dabaaa131#r110201620 I assume that quite some OpenWrt users may use RTL8125B PCIe NICs, but I have asked in the OpenWrt forum for testing results including this series: https://forum.openwrt.org/t/nanopi-r6s-kernel-6-1-intergration/154677/3?u=daniel As the r8169 driver is not using phylink and uses C22 to connect to the PHY the main difference which will affect these devices is that genphy_soft_reset will be called as a result of r8169_hw_phy_config->phy_init_hw->(phydrv).soft_reset Also note the r8169 driver always sets the interface mode to either PHY_INTERFACE_MODE_GMII or PHY_INTERFACE_MODE_MII in r8169_phy_connect() before calling phy_connect_direct(). While this is certainly not technically correct for the 2.5G NICs in the strict sense, it does have the desired effect that the newly introduced function rtl8221b_config_init() just returns without making any changes.