Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2798898rdd; Sat, 13 Jan 2024 02:28:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPB5GcVy4SQz7Xr18rL5crGqrsXONOGZ2k/AytPVczp4Xt81qw7XEKQvcMPFC4X98kg7xX X-Received: by 2002:a05:6870:ac21:b0:205:d846:3afc with SMTP id kw33-20020a056870ac2100b00205d8463afcmr3542076oab.60.1705141694225; Sat, 13 Jan 2024 02:28:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705141694; cv=none; d=google.com; s=arc-20160816; b=gyK8kiU2yfSPTZJCKnO4h/p5SoewE8OSllUcM5wituIymxmZx4hLPkuzcZKfyUBdNd ToxWrgh6dmEx8kKcTz6F9NsC/nVwuL/9DMInP+PfxHvnLE8s8TCEmmt2GfT95dYZW5Nx Q8rtwU0+XmK/tyFxrCDB8JWZ9ERyPqUWx2HtdJjg/Jyj0eIbkAfqTOawATDvhLmeBmNW AWKwkMk5QKVwFT+FkICxcVSAW8zaigaIGIko93uKHzPM0jX85eWfhIwjaRKOl4ZuHzV8 NKaG+KyTbbQiQDFamlzXyiqKIcUu4N4LHfTolVqAOx3WJVfbgl5cikRjgAiY38Dn5X2e VSTw== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25258-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v190-20020a6389c7000000b005ce02d8ef08si5059491pgd.884.2024.01.13.02.28.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 02:28:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25258-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=pass header.i=@arinc9.com header.s=gm1 header.b=bbCpXq0a; spf=pass (google.com: domain of linux-kernel+bounces-25258-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25258-linux.lists.archive=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 DA2C9285511 for ; Sat, 13 Jan 2024 10:28:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4CB81C88F; Sat, 13 Jan 2024 10:26:20 +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?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= To: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: mithat.guner@xeront.com, erkin.bozoglu@xeront.com, Luiz Angelo Daros de Luca , 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: arinc.unal@arinc9.com 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 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 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; -- 2.40.1