Message ID | 20240113102529.80371-8-arinc.unal@arinc9.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-25258-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp692502dyc; Sat, 13 Jan 2024 02:28:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmobvIJezvu31g50+za5C8dBP8VgPnDQR00bqxqrvaTb39oPhv7nO46xEpFdy+VFYLyhbC X-Received: by 2002:a05:6808:13d6:b0:3bc:255e:3132 with SMTP id d22-20020a05680813d600b003bc255e3132mr2994862oiw.22.1705141703912; Sat, 13 Jan 2024 02:28:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705141703; cv=none; d=google.com; s=arc-20160816; b=Jhm6MGZg1qYsby3U/B2LyfAc4iNz1loKa3vdkRs2U6MV7LXAPbpeBwU93gQVoYRW/r cICynyMtqrM2rMm2H199GWmc+oeYZSstS7vMXGGTKKWs+YyDebPkj9P2Xf011YPAjuJa mgJqgfTmbXauSJiz5uT9vCnQB2z+kMO48SKSlaYtDnGU7Jidq5cI9AfXyoUmoBuC0Aze KqMbmtmAvGs60SM4a8MJ7dplv7lYy61489KdrMu9HTUdR9StzRKBDrIKVyn7l9QevQBS sMIVkPPHVhp43WcgeUN8Dd2VZBsK6PHMcMDDKf6j6GZ15ry0YK5HjfwZtm1atRFabcdb 5e3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=woi1aJhgxN/YqRBXLbFxEW/CiZM+RsFUK1nA6ZMsXGU=; fh=oEE+jV5O4HAXE+nw8ulhLME5zcU0kdlsqoguEBeScfM=; b=TCr/ZFoKGtiOR3xKnQjtoEmUHDAJkNxYoZINzHhS46W/0nXHnxHo8/bBwa2wpi4ssk ARZh24DsgFcpBnkJOIzpi9g4r4kwz81DQp/6AOswg53EuCeywbmZZc1i34lQ0fQOJqGE M4eCiuBwZ9hWjwFPBKSTflTsOBTA7qd0pGsqFBsn90cP8CSjWjSzL9BQrvBhwZCkvrWt R1lXZxnECvV7A37Za9VK+MAq1vwSMQEy1wtVp8MnbjegeGFaZS/jOgETquTCXdwBwR+j R7XcRGTTJXUax/jvBBONOb4Ubv4scgdoB7LPcsrmt9fU+yX1WR0jdrWg1AMuz7bWYXmS 5xFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=bbCpXq0a; spf=pass (google.com: domain of linux-kernel+bounces-25258-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25258-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s133-20020a632c8b000000b005afc5ea43fdsi5035943pgs.849.2024.01.13.02.28.23 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 02:28:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25258-ouuuleilei=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=pass header.i=@arinc9.com header.s=gm1 header.b=bbCpXq0a; spf=pass (google.com: domain of linux-kernel+bounces-25258-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25258-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com 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 79A36285573 for <ouuuleilei@gmail.com>; Sat, 13 Jan 2024 10:28:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 861681865A; Sat, 13 Jan 2024 10:26:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="bbCpXq0a" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 B6CD41B971; Sat, 13 Jan 2024 10:26:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arinc9.com Received: by mail.gandi.net (Postfix) with ESMTPSA id EDA8160007; Sat, 13 Jan 2024 10:26:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1705141575; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=woi1aJhgxN/YqRBXLbFxEW/CiZM+RsFUK1nA6ZMsXGU=; b=bbCpXq0aUsb3NuYrqWDV1IQwcgJcAAHxx0ndZBah+bDvllmtXSLv2XNSey98h9TnNVjPo3 PjQZ2bHowg53uBegrDI0wVT9FuXR+IswAd7dK80hUA4eyfv6GK2UvbBmqMgPJhDfu+/0f+ iYa0cM0up+fQPfNwVn5CHZaZMYQqrBFpd8CSnzjqt7n4zJyJlgOJavTVqFAQOyA6BKZsAx l3PPs2RoysC+3/grWaXZndJfkFkSd+zIBOaq1bIR++ZMwaSKD1d0aqx5IJ9/H3wMo2hjxp OpwQQrOmPKzUbnfcisRkcKHa/NQqfOS+hrBOqj5/VKpzGbwJ6QY4OqQec040/A== From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= <arinc.unal@arinc9.com> To: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= <arinc.unal@arinc9.com>, Daniel Golle <daniel@makrotopia.org>, Landen Chao <Landen.Chao@mediatek.com>, DENG Qingfang <dqfext@gmail.com>, Sean Wang <sean.wang@mediatek.com>, Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Cc: mithat.guner@xeront.com, erkin.bozoglu@xeront.com, Luiz Angelo Daros de Luca <luizluca@gmail.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC PATCH net-next 7/8] net: dsa: mt7530: correct port capabilities of MT7988 Date: Sat, 13 Jan 2024 13:25:28 +0300 Message-Id: <20240113102529.80371-8-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240113102529.80371-1-arinc.unal@arinc9.com> References: <20240113102529.80371-1-arinc.unal@arinc9.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: arinc.unal@arinc9.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787970667352140094 X-GMAIL-MSGID: 1787970667352140094 |
Series |
MT7530 DSA Subdriver Improvements Act II
|
|
Commit Message
Arınç ÜNAL
Jan. 13, 2024, 10:25 a.m. UTC
On the switch on the MT7988 SoC, there are only 4 PHYs. That's port 0 to 3. Set the internal phy cases to '0 ... 3'. Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> Acked-by: Daniel Golle <daniel@makrotopia.org> --- drivers/net/dsa/mt7530.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Sat, Jan 13, 2024 at 01:25:28PM +0300, Arınç ÜNAL wrote: > On the switch on the MT7988 SoC, there are only 4 PHYs. That's port 0 to 3. > Set the internal phy cases to '0 ... 3'. > > Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> > Acked-by: Daniel Golle <daniel@makrotopia.org> > --- For this patch to be obviously correct, please make a statement in the commit message about port 4. It doesn't exist at all?
On Mon, Jan 15, 2024 at 11:42:38PM +0200, Vladimir Oltean wrote: > On Sat, Jan 13, 2024 at 01:25:28PM +0300, Arınç ÜNAL wrote: > > On the switch on the MT7988 SoC, there are only 4 PHYs. That's port 0 to 3. > > Set the internal phy cases to '0 ... 3'. > > > > Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> > > Acked-by: Daniel Golle <daniel@makrotopia.org> > > --- > > For this patch to be obviously correct, please make a statement in the > commit message about port 4. It doesn't exist at all? Correct. As shown in Block Diagram 8.1.1.3 on page 125 of MT7988A Wi-Fi 7 Generation Router Platform: Datasheet (Open Version) Version: 0.1 Release Date: 2023-10-18 which is available publicly on BananaPi's Wiki[1]. Port 0~3 are TP user ports, Port 6 is internally linked to XGMII of MAC 0. Port 4 and 5 are not used at all in this design. [1]: https://wiki.banana-pi.org/Banana_Pi_BPI-R4#Documents
On 16.01.2024 01:09, Daniel Golle wrote: > On Mon, Jan 15, 2024 at 11:42:38PM +0200, Vladimir Oltean wrote: >> On Sat, Jan 13, 2024 at 01:25:28PM +0300, Arınç ÜNAL wrote: >>> On the switch on the MT7988 SoC, there are only 4 PHYs. That's port 0 to 3. >>> Set the internal phy cases to '0 ... 3'. >>> >>> Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> >>> Acked-by: Daniel Golle <daniel@makrotopia.org> >>> --- >> >> For this patch to be obviously correct, please make a statement in the >> commit message about port 4. It doesn't exist at all? > > Correct. As shown in Block Diagram 8.1.1.3 on page 125 of > MT7988A Wi-Fi 7 Generation Router Platform: Datasheet (Open Version) > Version: 0.1 > Release Date: 2023-10-18 > which is available publicly on BananaPi's Wiki[1]. > > Port 0~3 are TP user ports, Port 6 is internally linked to XGMII of MAC 0. > Port 4 and 5 are not used at all in this design. > > [1]: https://wiki.banana-pi.org/Banana_Pi_BPI-R4#Documents Thanks for chiming in Daniel, I will include this on the patch log. Arınç
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index 3a02308763ca..e7e7e89d8eca 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -2562,7 +2562,7 @@ static void mt7988_mac_port_get_caps(struct dsa_switch *ds, int port, switch (port) { /* Internal PHY */ - case 0 ... 4: + case 0 ... 3: __set_bit(PHY_INTERFACE_MODE_INTERNAL, config->supported_interfaces); break;