Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp611830lqo; Wed, 8 May 2024 09:22:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtyLP4OX0yaVQ0zcKlts3qg2UK6ZsyzfAcRRbauFCi8oPrgTfhRTuTGvQuhU9sOKLIChQjwqFLiXUQQVUgQSaMHD6QB96F9w71ybU7qg== X-Google-Smtp-Source: AGHT+IEnzRERP53OmZgmhVAHF+NYRtZCZBlK1SuXGu1/qz2MLoGn2HYy6xGu5B3b+rhGEoWEvcRJ X-Received: by 2002:a17:902:f60a:b0:1e0:b60f:5de3 with SMTP id d9443c01a7336-1eef9f417c0mr2064155ad.7.1715185358652; Wed, 08 May 2024 09:22:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715185358; cv=pass; d=google.com; s=arc-20160816; b=SXfOITHZfwKX9fDx09E8Mh0TBVZ+d0p5I9hqt2O2O04bXMu5S1m5UKLXfyczciysNm MEd0QtsC1xI0aeetBL0MJ9KsA7l/Yl93TubXSr9fiPGi7dc1XqJ31GOdZwYYoMTJQoPY tb5h+/lph8BlAc0YM3qWuHoPF8htlMb4r5UWqhhhvMOC3TGsuDNalpmOO26D5CTLMEXU FCPFfeca6INLeRP+eW8xhgcB6m83EG/GAlFMuqtbepoOzb9b6+FLQLRF2+bMrGj6yQVx IxoQ6aze+T7MAWJwUlVC0i4TDq42n1XqOOb6lRCZyeo/SJBN4uOXMougPZqcfzL5mkM1 5iug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=55JgjvBmIgCm3D5GB+wpCGQc7vBp7Fqh3QDpnDCReME=; fh=ZnJcf0LEvh2uoEacjVH0YeeQN5z6lNjoItRLnJU4rLY=; b=cD4xtpiPRg2LTLRHsxHwRIxD5To4Qxf12HGe/k0Af4rq1i/4C+y2VlfYLHbEL1drL1 6mY2pz63VK/lxqZ+yye9H5Ddh6nhbtFwHXakW/dS0+BHWeCogmyAlU1IJntt/Jer4Dul lChLXwiWHssRgwdDVzA4IOBN2W2t6JXIN9kwC3vlMn4sHcCu1w96nKTwWF5T1zeLdqic EKUxclArYB1Bk3mfrF9Jm2FRfT5CXN2JcuCprZNnKCnhwABLawJJpEvouXv8GfTtsSaM oN0re9fhaZ1iv5UEM9CRALTrVqt0GL1W/7PWHX7+aWbMSiO4IYXVj/EQ0bUl5njsoRvY +H9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-173533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173533-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n16-20020a170902f61000b001eb0f19ab6asi13201360plg.514.2024.05.08.09.22.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 09:22:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-173533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173533-linux.lists.archive=gmail.com@vger.kernel.org" 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 8A5BE28AE57 for ; Wed, 8 May 2024 16:21:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 86E99129E6F; Wed, 8 May 2024 16:21:25 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 12C3C128396; Wed, 8 May 2024 16:21:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715185285; cv=none; b=tFc9I8R+Z3Bfc5YP55QApji9/ExtikdRgp+8evr+oFkfMk0eMa3XQ7YhyOsGpPY3qGj1IUMd4IM8WteVm+/GiFyF1tSCMLtr6mMd0lVSQfxL13gRVuWgWlBkYu8VRxKytFfJMZ5KT45EAZhIuatVgSOM/AvvDVI5V0Cj4azCJj8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715185285; c=relaxed/simple; bh=5QNOGdMJ/e8elnH9GXwxtWVSpRGUAu8yyndSDA/XBGY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CsIan4kkYKHDkCjSSjlko5mPIZhBdvqRcnS7OjOp4BbB/WMbmmiLdO1SVP1E4yi9FO1gUs3PnXylSNPVDM2taqT7CQLgC1CT/VC4YJrq4FVN25M7enczaHoX27YSPkZ5BHt8HillHkrPzkyHZLEDezdG7xJVrCuexCB3Z7N/8Y8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.97.1) (envelope-from ) id 1s4k2e-000000003Ks-1aM4; Wed, 08 May 2024 16:21:16 +0000 Date: Wed, 8 May 2024 17:21:11 +0100 From: Daniel Golle To: Andrew Lunn Cc: SkyLake Huang =?utf-8?B?KOm7g+WVn+a+pCk=?= , "linux@armlinux.org.uk" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "kuba@kernel.org" , "pabeni@redhat.com" , "edumazet@google.com" , "netdev@vger.kernel.org" , "dqfext@gmail.com" , Steven Liu =?utf-8?B?KOWKieS6uuixqik=?= , "matthias.bgg@gmail.com" , "davem@davemloft.net" , "hkallweit1@gmail.com" , "angelogioacchino.delregno@collabora.com" Subject: Re: [PATCH 3/3] net: phy: mediatek: add support for built-in 2.5G ethernet PHY on MT7988 Message-ID: References: <20240425023325.15586-1-SkyLake.Huang@mediatek.com> <20240425023325.15586-4-SkyLake.Huang@mediatek.com> <4ccd437ee744382a8483ffe71d06cd495dacec71.camel@mediatek.com> <577176af-9f6c-45f9-824f-2b4ca762b2f7@lunn.ch> 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: <577176af-9f6c-45f9-824f-2b4ca762b2f7@lunn.ch> On Wed, May 08, 2024 at 02:30:21PM +0200, Andrew Lunn wrote: > > I'm not sure I really get this. MT7988's internal 2.5Gphy is built > > inside SoC. We won't have a number of these PHYs. > > How long does firmware download take? If you are holding RTNL you are > blocking all other network configuration. How many Ethernets does this > device have? If it is just one, it is not too bad, but if there is a > built in switch, you cannot be configuring that switch at the same > time firmware download is happening... The MT7988 SoC has a bunch of network interfaces: - GMAC0 is typically connected as conduit to a 4-port MT7530-like DSA switch offering 4 1GE user ports. PHY driver mediatek-ge-soc.c takes care of those, and yes, they do need some "care"... - GMAC1 can be used with the internal 2.5GE PHY (ie. with the driver discussed here) OR for to connect an external PHY or SFP via 1000Base-X, 2500Base-X, SGMII, 5GBase-R, 10GBase-R or USXGMII. - GMAC2 is can only be used with an external PHY or SFP using 1000Base-X, 2500Base-X, SGMII, 5GBase-R, 10GBase-R or USXGMII. So while there is only exactly one of the internal 2.5GE PHY there are many other network interfaces on that same SoC. I hope that clarifies things a bit.