Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1079344rdb; Tue, 30 Jan 2024 07:21:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IEXy/E0FrQAuH/HhF93yVoi/wY/vH6HvVZkuQupxMJf8GAMBWryPtoItcGxGVxKhMLFfnXM X-Received: by 2002:a05:6358:2612:b0:176:38e:7601 with SMTP id l18-20020a056358261200b00176038e7601mr6214770rwc.30.1706628111920; Tue, 30 Jan 2024 07:21:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706628111; cv=pass; d=google.com; s=arc-20160816; b=hzRM5S2C3D04ZkpOyeac5QQrY1FC30CuDkp3NnKCUVaFbQXdZVb3+4p+KbsVfSGMkb Jecmw4H7yq+c72EWtmDQ/cM39tg3X7D9J+NI1ew4xgYN2Z+aco625GTIIr9bVWZ0GA+u gSVk1+tMHKp4GPhI/w9T2IwmCGexF9BKqac9op3ob5HVa2/gMNz41+unu+IpqJENj4Ca 4tr8Obbd8lrmZ7cNPu2Ql5er41kfGEPgWx6vTJGT71ba8uLpSwnG0Z45088+9gfbAShm nQ4o+fioQ4vd/E1n2jFHkkeG+eJ8zP2ZaIfCLGvkTl+yYfnVXyQOF9XAUZ7vOfvbciEt M6IQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=0r5mi3A4NqQQVHvC2mrvPHZsDg3MrjnrHGbHjmovQiQ=; fh=xNlE86XmqkSplYYMvvd74gD/RbF2aUqtHPBgVCVc3H8=; b=JfiAromt46pcjGTED4Sn8flyvLyeUtwS0weo7XU3KJzwiB+LxHl7fNMaeQZXWvsxZQ U+ZOlcYxvxJ/VVlCCLJsh9rYObYXTmZbH5lAK/Z8C0b9hzybOeI11ciSKIyjFA4X+tSu Ij/KQzpPvEQ2IEVuMYOg6RujYD3Z4jI/9apTrYGa6OeClFTpyYcXsmQgZ8g42kjH5iQ3 9LNWCcGGnrh02/QDO/uRHMIRNc+U0Dn6XPDnvjKhM1Uk3bnbNbCFSvF/KJXzc0GJR8NJ Im/yWan81mJ2Og9UKfeNZxHFCNwJaevBHPkQQ7iGgI8frNBn+CVn9asD5voGJU5T2QfY fFqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f1T1xXnu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 o18-20020a637e52000000b005cdad153d85si7716914pgn.651.2024.01.30.07.21.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 07:21:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44827-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f1T1xXnu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 84565289236 for ; Tue, 30 Jan 2024 15:21:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12CD486AF0; Tue, 30 Jan 2024 15:20:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f1T1xXnu" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 297D7823A7; Tue, 30 Jan 2024 15:20:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706628057; cv=none; b=qhaC8A5reUIOYa6xVhrfFeXdeCz4xq8YS1ze8piH68xutmvLS6av/Jjg161h/68ARcQLy9+C5rZdufBWI8Qlm9vC21iAnGZSTulQ3r1E3x9Mx4+YdoC2W/iBjd57S5I3ioDVC+wQxoHcrh25GCjS0FO4Wp3aFdylMG2JW4TYK40= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706628057; c=relaxed/simple; bh=msQVr9s6HrHM8DrJhHCwrIGkygPIMMpIFB46gjE9M7I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WlNSD2OeVGhwaaVrMNqGiaDe5jbrjovPxiQvkwjZRImHhWNA+K6qlVP+3Qh1CM4ON+HFMIpOW+EkCv/VZ8fhWPrmce5Wn4stz8R4yy2Dr7enNUSuupE8CYdZm9tpDJ9UsZtONGhqrQUcOJlPiMvxTKpanyPV/z6dFpn742sYvEg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f1T1xXnu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id D6E4CC32784; Tue, 30 Jan 2024 15:20:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706628056; bh=msQVr9s6HrHM8DrJhHCwrIGkygPIMMpIFB46gjE9M7I=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=f1T1xXnuyntf6lbjXWmD3EfOcH8jNnOj8RKAZpmq7UgywGXy55t5iCvdoQ6ey6vY/ WGslurVgvvN72SIiXDj1x/UWEEHCkmGoEQACKU18OEX+2wL8e8HTe+QmYlmukURXMb ScEbKc44Rkp3m1u5Tc2JtSO0SOF5j28Kwk3iZA8rlgO8+QnZ0WEtRUMu1MvTJOUFhB HxTnJi4lrw3NlWWEsciwiPeYItBorKXzsFJzt8uv1J1TpZQdTj8slkDc+W4vG6F+ng Nur2HDvdCljIBIbPr+Vo2xJvn9Tv0MS8qZ/7SzyFKElU/cY4zbtR7rS0xQanEVyvaJ LTJ/3AzVWMVCA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C589AC4828C; Tue, 30 Jan 2024 15:20:56 +0000 (UTC) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= via B4 Relay Date: Tue, 30 Jan 2024 18:20:52 +0300 Subject: [PATCH net-next v2 6/7] net: dsa: mt7530: correct port capabilities of MT7988 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-Transfer-Encoding: 8bit Message-Id: <20240130-for-netnext-mt7530-improvements-2-v2-6-ba06f5dd9eb0@arinc9.com> References: <20240130-for-netnext-mt7530-improvements-2-v2-0-ba06f5dd9eb0@arinc9.com> In-Reply-To: <20240130-for-netnext-mt7530-improvements-2-v2-0-ba06f5dd9eb0@arinc9.com> To: 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 , Russell King Cc: 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, =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706628055; l=1084; i=arinc.unal@arinc9.com; s=arinc9-patatt; h=from:subject:message-id; bh=qgwVD3oCKv9eQ/3EPjjXtTaWHDhG5bpqRvc5PpGf3Uo=; b=K7aHXOw0xi1WQgkCS+NjcDvUcJ0R9W8AM7wckWoXDNIHYTBW7O+nQEi4iDULhCZxa663+isa4 nNmjq64fz3KDUdT2HgEIrYFNX6K72quW8PjaEya2/J/cIeXB1puHtBG X-Developer-Key: i=arinc.unal@arinc9.com; a=ed25519; pk=VmvgMWwm73yVIrlyJYvGtnXkQJy9CvbaeEqPQO9Z4kA= X-Endpoint-Received: by B4 Relay for arinc.unal@arinc9.com/arinc9-patatt with auth_id=115 X-Original-From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= Reply-To: From: Arınç ÜNAL On the switch on the MT7988 SoC, as shown in Block Diagram 8.1.1.3 on page 125 of "MT7988A Wi-Fi 7 Generation Router Platform: Datasheet (Open Version) v0.1", there are only 4 PHYs. That's port 0 to 3. Set the case for ports which connect to switch PHYs to '0 ... 3'. Port 4 and 5 are not used at all in this design. Link: https://wiki.banana-pi.org/Banana_Pi_BPI-R4#Documents [1] Signed-off-by: Arınç ÜNAL Acked-by: Daniel Golle --- drivers/net/dsa/mt7530.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index 36dc2bbcf3b6..638cd3f2a495 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -2577,7 +2577,7 @@ static void mt7988_mac_port_get_caps(struct dsa_switch *ds, int port, switch (port) { /* Ports which are connected to switch PHYs. There is no MII pinout. */ - case 0 ... 4: + case 0 ... 3: __set_bit(PHY_INTERFACE_MODE_INTERNAL, config->supported_interfaces); break; -- 2.40.1