Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp997174rdb; Fri, 2 Feb 2024 10:06:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjMYopNjAzgWTnz2YC8JyN1qXZKF+RUBzWJI0phcchcsrtw1tzWQElebCp/NSZYiPFLJkn X-Received: by 2002:a17:902:eb83:b0:1d9:63e2:680a with SMTP id q3-20020a170902eb8300b001d963e2680amr4173857plg.24.1706897174417; Fri, 02 Feb 2024 10:06:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706897174; cv=pass; d=google.com; s=arc-20160816; b=VPk6LeAdpIgklynrgXlQCFWdLYZ1w8SDU/tDNk5stxmN6JwcbUxK4tWmAqBgn+T6AH v2qCbc9mJolBKeLsfoE2sf9kIHftsmA6NzvKxwpVmwiKxzrcrOg1Wej5M+YXMa9uoCNk Li8O5EKXjNBpoJNE6w/+j+Y3K9S+1Pt/pJgTzKJSaU15e8ZE8SP/z9Ine8Av/jG2DD+g 5lOGo7lLCx9WmpjodZcn6l1Fg+aFr4s23D0EQabTPYgbF8+kVzPEUbQ7FBYkdZ2DLsXR RzrBA0NkoTF6ScGQFIWZmXJQlXrepl8oedrr5EM1Kv0jEukzy9WDycmAWKu+fnHtpuZO OirQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=h2ATmObSzV4eeYzY6CoQyZq/5jRI5DOKZsLmwWQtw3M=; fh=QIZuQROahqfFHvgQFlvin+xYnQIrFWZN6FeyIP4MqUw=; b=dfEWeRZ4ri9IaQ6B43axxiR7URD39TEQuBbo9AIqzRr+TFgcFH8P4qB+i/5wUCyuD5 11DmvwtK4BPtC6h5dauK93Tktyvj98h8phrzzk8UX0dCtwrxddaFpNDqfyxA6tO/i4K8 4KwrJQsQ+D9TWRQ1a8IA2SbqOvrjk2JSqn0O8Z6x/LY9SWuW1tMcpxs1/VQfBTVn9pmd EbYK3UREVsaAy7XIejCtCR2DQLIyv7YHJk9F5OSuh6wuGTAKg60HsCQ7EH5ls1KQaCOD sBF/RsrDUthiTiyppyZGdpHNbwxLbKZQ5VnQWotwJwSXJ9Iyl+t5mLf1Bw3OogQ+1TZQ P5Pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=ObLXNAjP; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-50291-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk X-Forwarded-Encrypted: i=1; AJvYcCU3SA8AOkt4X0sr001Urf8QAOL0Xf2L+ppUr81rUNFMhkX8GUm5j2hZVRHQDEWf4Kyqcag9BLrI+Np2VLw4LScs5oiu2C8R81g32AXfuQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ix19-20020a170902f81300b001d9481c14bcsi1999172plb.414.2024.02.02.10.06.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 10:06:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50291-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=ObLXNAjP; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-50291-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1668828369E for ; Fri, 2 Feb 2024 18:06:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5558914C5B3; Fri, 2 Feb 2024 18:06:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="ObLXNAjP" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDE5014C583; Fri, 2 Feb 2024 18:06:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706897164; cv=none; b=hNeKMDcs8m0I5YvlWD3R/FZmIPcbVJ1U7intaFYXt8Q09RdgcDg5WnI0gviODlthEON8dHmOdTQ9R6toKnM06dduzT8tLo7+gsgu8LBevXgyvlon3Tb30faTHWbFXgCwjddm/UdmvQfIXn9fTIRH2FBa6YOpt+RWveKiqLW1rlU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706897164; c=relaxed/simple; bh=0+zBy9BxMtmgrUapuuE00XzrLUjsL9pi4V6VkVRtgQc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PXaG4UKtNVueO/ezoYbf9TniHFspnIhvoQInFK0mlQBtUkzMveXJnqoNFe8L9tl88KUMDyJNYvTh89a6VwzbRbqbUud4QVA1+0b1z/6ZbZL1snuPHwLFag0/TWMA/pBd7R8W0LQQvU9WrCylT0NK6ABRyrDsRxbNUyEjy4X5Qmg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=ObLXNAjP; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk 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-Transfer-Encoding:Content-Type: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-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=h2ATmObSzV4eeYzY6CoQyZq/5jRI5DOKZsLmwWQtw3M=; b=ObLXNAjPuveYNFk2FxXGhxn30h 0eMSF4JCx6nTaY5ps/qixLTdCG9nttzdB4vmXGfi1dhc0Lm+mlwVLIWjISDlCqhO22LkaLGM8bRh/ ZgYJoAqIqdCU+b140Zls+zIInP9AYeteqn0e438kukRymDf+y9BygXSO56Ns6K0YplJGZTdhFXtIC BS/gtnnwuIyYzoiBscjrIpTLWBj2/+4QkfR240j+qXMWhfZQ70gc8xr6EOfY1JO9UwgV5e8J0pJSu 2qjd4ciq2AFp+ipZLyExm5XZlqn4LncSrUUE+8wnVh/el1JEDBepA1dxdRX4ycLyI1kQ/W8q0qDBu MhuO8W/A==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:59614) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rVxv3-0006Kg-2u; Fri, 02 Feb 2024 18:05:42 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rVxuy-0008VK-P4; Fri, 02 Feb 2024 18:05:36 +0000 Date: Fri, 2 Feb 2024 18:05:36 +0000 From: "Russell King (Oracle)" To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: Daniel Golle , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, Bartel Eerdekens , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net-next v3 1/7] net: dsa: mt7530: empty default case on mt7530_setup_port5() Message-ID: References: <20240202-for-netnext-mt7530-improvements-2-v3-0-63d5adae99ca@arinc9.com> <20240202-for-netnext-mt7530-improvements-2-v3-1-63d5adae99ca@arinc9.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Russell King (Oracle) On Fri, Feb 02, 2024 at 08:44:39PM +0300, Arınç ÜNAL wrote: > On 2.02.2024 14:40, Russell King (Oracle) wrote: > > While reviewing this change, but not related to it, I notice that this > > function sets the TX delay based on the RGMII interface mode. This isn't > > correct. I've explained why this is this many times in the past, but > > essentially it comes down to the model: > > > > > > phy-mode in NIC node Network driver PCB PHY > > rgmii no delays delays no delays > > rgmii-id no delays no delays tx/rx delays > > rgmii-txid no delays no delays tx delays > > rgmii-rxid no delays no delays rx delays > > > > Then we have rx-internal-delay-ps and tx-internal-delay-ps in the NIC > > node which define the RGMII delays at the local end and similar > > properties for the PHY node. > > > > > > So, if we take the view that, when a switch is connected to a NIC in > > RGMII mode, then the phy-mode specified delays still should not impact > > the local NIC. > > > > Now, for the switch, we specify the phy-mode in the port node as well. > > Consider the case of a switch port connected to a RGMII PHY. This has > > to operate in exactly the same way as a normal NIC - that is, the > > RGMII delays at the port should be ignored as it's the responsibility > > of a PHY. > > > > The final scenario to examine is the case of a RGMII switch port > > connected to a NIC. The NIC's phy-mode has no way to be communicated > > to DSA or vice versa, so neither phy-mode can impact the other side > > of the RGMII link, but should only place the link into RGMII mode. > > Given everything I've said above, the only way to configure RGMII > > delays is via the rx-internal-delay-ps and tx-internal-delay-ps > > properties. So, DSA drivers should _not_ be configuring their ports > > with RGMII delays based on the RGMII phy interface mode. > > > > The above is my purely logically reasoned point of view on this > > subject. Others may have other (to me completely illogical) > > interpretations that can only lead to interoperability issues. > > I will address this with the next patch series. Thank you for explaining it > in detail. This is a good time to point out not to rush with the next patch series, as my email will _likely_ provoke some additional discussion from Andrew and/or Vladimir. So please give it a few days (maybe around the middle of next week) to give them time to consider my email and respond. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!