Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2668335lqo; Tue, 14 May 2024 06:05:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVu3JJ99bghB2WY61+H3aOEoQqC60szciFzGeh4Oz+ts1wXNJRt7yJt9d+Yb2O9KYcNgPLoi6rS1Xb70wIn8doDfNC6TSpEIRloANe3kQ== X-Google-Smtp-Source: AGHT+IESQ9iQ46yo75AbIVHsQEhrgkMIHjY9xvUH2fTHf0chJNoyUPBryWEbA/IIQFc4ZWpwRYEL X-Received: by 2002:a37:de08:0:b0:792:bb2c:9737 with SMTP id af79cd13be357-792c75af7fcmr1447899585a.40.1715691934538; Tue, 14 May 2024 06:05:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715691934; cv=pass; d=google.com; s=arc-20160816; b=d9ha0MJ7jNH1XsaiX3yb9w+Q5WHzMz9+FZ+VyvCr+ZqW51mIzCq5i0w1JiHk3f+Yh9 7ThxX9byTEFtfuYWXrUCLAZ2OBJowELWEzg5y0xd1wf3C9yNLsN5K00jj3CcdzvG8pHL y5kXojCQgz7iwHF9PYXn67uOOQmzY8i5oJOrNZ2E/3KDy+bjBJ08FrCp1TAGYvA8upf7 c/cZ5PgCNuDLH6nN3VkqpA9tiyxpnDXMRGoIqLXJnzBGtYc2G7Mprwx59szMSIywElhv biU46O61a6WVwi/5f9g43iejNIVvi8JDkioxB8U8I8zvMH10A/tmBGhxU3oTQrl332Zd xWkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=dQfWTLYhPweRfGZN+ci+uPjT2T2ohypaGEMZ89n1Fv0=; fh=Idh3LYBW6whRLque1ah8k1GqkBYnL+exDseFZJxosmI=; b=CeQpN2gH4LEPUbTSMVdHcfHDtW07fb5jlodV/hB7e71Ka5A4NsDh0i4Qh/AXlkGq+G SwBQzixq5wDrhB7PnwWEFmsh8bt2okA87hZhe+Voez5CFrZ9PELZY0g4hInm/rbMMsID 43ugBd5CVmaMm3J5eeIHpwK/51MStGfphp+f5dkpAMa+tKn9envd554dBk00/ctKsX/J borBhJW7wkr1s2g7D58+kgy/aIBpDsuoYqGR5MSVpkakezdOituBtSMGH0vGXOqUakzk qoaBJGmxF8u+ZP1HzNZep2pin9Y3D6rMNIJaEHCX1A8dCF4Kd3S2DBLV8ymMl0m1KpKG Y6Yg==; 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=bH0xkm4z; 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-178692-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178692-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf36a630si1141344485a.686.2024.05.14.06.05.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 06:05:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178692-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=bH0xkm4z; 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-178692-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178692-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3B3211C21FEB for ; Tue, 14 May 2024 13:05:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC8A7140E5E; Tue, 14 May 2024 13:05:26 +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="bH0xkm4z" 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 59DE612E75; Tue, 14 May 2024 13:05:23 +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=1715691925; cv=none; b=jsO7VgXKx/aVkyMkgzzlrtBAtsigDGkEJNb2gNtCbRqGurn98fvbbbcXsNh8VEP+YQGq4NERYGD53p5o0Ysz6XIriA9a68PK8Jn+WunU4BA4N1u302bMjCjnsUa571Q1gpB8v2V5cJItExOYrslrstCpKlkyno93Em+qgNii9Nw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715691925; c=relaxed/simple; bh=+Z6R1uNsAOJ+8G02CVd/I1z60HSnWhvLdgPhe1ovvuA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IrsdVR9j1kR1kkmDOWHrZK0VXuLdHa+pQRAWU5CgiHoUXC97eAopp3NYQHhe/ZjwqtAbGCtNe/lcNaNQNFXsScDy3lmLYr2Ir0uMKz9GhYMt2nNQR78CydoWm/p5rTYK7sEuhsxx+4wXhOj2UlgwX72VclchBj5Kmeeq/7bfqOY= 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=bH0xkm4z; 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-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=dQfWTLYhPweRfGZN+ci+uPjT2T2ohypaGEMZ89n1Fv0=; b=bH0xkm4zsM5ql2lAREgIz9IfKW fqPf1Y/9t6zJUfue1FE8netIA9JAJQtssgIN1q+6l8rG3OrJakWMaTHtuMLu/2YLdvEjzMe/ujibJ XlJ/VniPCoFsoP1IeaWpxIOSEVo00TWDYuMmPcocYKuG3DxcMe9gVVDPoPIa/nQKnMLzXqSNTK90K 6gsBDJECghMsXAhf/iRaHaHmiK6Zi30rAZ2xFFKkA34mlud0DXi2A66UFqG2W4HGHfKWBEISXiNn+ NOJBF5zhBP44bV3b+fn2WGXT1U80nnym83c5jojreePi2zgW6qhKubaJLJnZzTZgKKUW1xiGMdZ0K n19023Eg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:43384) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s6rq2-0002zA-2U; Tue, 14 May 2024 14:05:02 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1s6rq1-00074q-WC; Tue, 14 May 2024 14:05:02 +0100 Date: Tue, 14 May 2024 14:05:01 +0100 From: "Russell King (Oracle)" To: Thomas Gessler Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, MD Danish Anwar , Ravi Gunasekaran Subject: Re: [PATCH 2/2] net: phy: dp83869: Fix RGMII-SGMII and 1000BASE-X Message-ID: References: <20240514122728.1490156-1-thomas.gessler@brueckmann-gmbh.de> <20240514122728.1490156-2-thomas.gessler@brueckmann-gmbh.de> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240514122728.1490156-2-thomas.gessler@brueckmann-gmbh.de> Sender: Russell King (Oracle) On Tue, May 14, 2024 at 02:27:28PM +0200, Thomas Gessler wrote: > The PHY supports multiple modes of which not all are properly > implemented by the driver. In the case of the RGMII-to-SGMII and > 1000BASE-X modes, this was primarily due to the use of non-standard > registers for auto-negotiation settings and link status. This patch adds > device-specific get_features(), config_aneg(), aneg_done(), and > read_status() functions for these modes. They are based on the genphy_* > versions with the correct registers and fall back to the genphy_* > versions for other modes. I'm reading this, and wondering... do you have a use case for this, or are you adding it because "the PHY supports this" ? > The RGMII-to-SGMII mode is special, because the chip does not really act > as a PHY in this mode but rather as a bridge. It requires a connected > SGMII PHY and gets the negotiated speed and duplex from it through SGMII > auto-negotiation. To use the DP83869 as a virtual PHY, we assume that > the connected SGMII PHY supports 10/100/1000M half/full duplex and > therefore support and always advertise those settings. I call this configuration a "stacked PHY" system, and you're right that it's a setup that we have no support for at the moment. We assume that there is exactly one PHY in each network device. I think we would need a lot of re-architecting of the phylib <-> netdev linkage to allow stacked PHY systems to work sensibly. If you don't have a use case for this, then it would be better not to add support for it at this stage, otherwise it may restrict what we can do in the future when coming up with a solution for stacked PHY support. Alternatively, you may wish to discuss this topic and work on a solution. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!