From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CC10BC98309 for ; Wed, 23 Sep 2026 05:51:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YnMEvypJ3Ha2bDjbDxvE5Gk/KNs3bBY6A7SZqpIE6fo=; b=wVKZeCHhASr4A58qSG8S76bUtH aV4KyprNGu1jOHBm02ZgOl1K4zA3siDqspIsr+hP4YNNeVDV0RQIypmYWpGArJIwHy+JCGf0kaQKv EKz6dozP+B0TpXbg0nsL9cGFD9EzlCrM1X6fd2mfH5Ho23YvoXKN95eUk8mz3S8PUflbqcC5c6hfi K22cPoTRjhX6q+9ZPlY2fCkW23JPkE4Gjs0i2mRI6F1DtvTunnmbdVnkcq6E8O69LhpQxLYpZ+0XZ PgKk41dWgfFXTUPVMu9ptE75bfGQeP26kjJlCa1f1wXWYe/8UHKtiCu7xhM49pIRr+qV+ezluxwFM nYvfGgJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x9Fst-00000007CqH-3Vn8; Wed, 23 Sep 2026 05:51:11 +0000 Received: from mail-pz2-x0c.google.com ([2607:f8b0:4864:3b::c]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x9Fsq-00000007Co3-3Ynl for linux-mediatek@lists.infradead.org; Wed, 23 Sep 2026 05:51:09 +0000 Received: by mail-pz2-x0c.google.com with SMTP id 41be03b00d2f7-cc750a1482fso419852a12.2 for ; Tue, 22 Sep 2026 22:51:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790142668; x=1790747468; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=YnMEvypJ3Ha2bDjbDxvE5Gk/KNs3bBY6A7SZqpIE6fo=; b=Z667LpZ2ELkQn1czkEJU/mryF0/zAbyPTYBnGZoxpHAHusBU9qb9mEZrUwKk+hnBm6 BiO39z0qLe1ENoJnnneFdjM2xIJ+fqxsOAMBjDMH75zwCP4V00MAo3urF0RuRoRbKfYW DwZmDlrQ2zboEI0qMALx5IgFaAM5OLR1u8KmTjx8mKIuIif5FSpq8wc+oy0HBtguxUD9 IWdCZF6qe9yYzroXKx3HrXqItqF4dx54WsKZLD+fc+tiNtRDtQLP14EWTic4sA/1IbCi oY3bgMG8C4DlgDpBivmpEOCQ5T9iQhfZpKO021g2JVa5ScfzMTUaLEKTLikd9g8oi+fn YbjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790142668; x=1790747468; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=YnMEvypJ3Ha2bDjbDxvE5Gk/KNs3bBY6A7SZqpIE6fo=; b=t02RLmCZY77xvz0NQwtq7qFnbSgeRkOzaQN/xEIz+10DPulsFMYuPHZwYgRLOyMPCe NwLP/kP17f1OkcUXex5hSWoaMUECb+gc81ELetTNZtRgodG/Tdtlweab1vStDCnyS/K3 nt1vPvyhhXXCXFKRSfYG2h+joJynhNp09NwmiZehxg1O/vbw0ptbOKuoTb1O1jKtXZof U1uX7QTmLZ3pD/fVfdQWaeeNSX3AGzDhRZ2LUfF1wknYub2paaxVq9J7rF9X/woohQHK T/9znXcIP2GyAK2l4PRYrkRhjH4ImFGa1OtW8e0K9ZhF1vYJKwWlO5TxDx9zE9Gyd/G4 22xA== X-Forwarded-Encrypted: i=1; AKwUvBxCH880ZUegujnjbhL3GUitFFfUuHgd6oSEswO8Crrf1ZGErAjDiAKV9CBwm3yTTEJTrL/LWbpmXVmg6f5Euw==@lists.infradead.org X-Gm-Message-State: AFuF++m9iKSggZCcBi3vCwBqlQ1OpKFHST7CNx+B8kP8FqOYSoBTC+OY Sm77R/XlfI2prrQ6qaw+qdn/WNsBIhEFBJU51nO/TqvbioLPJUBHjbeP X-Gm-Gg: AYBFou2tVapof2Ka2fcQLbZpsbRyetZ+/gOEEqvS9+kiooYQTVCvTXNAzp9yryWdeN7 QtW7z+bnc2Juozxqxp5pmm85eo7ua/IrJpBINj/HWzNV2B961LjwwczXsaly0Q+hPYGv5vb5ruL ZcDR+W+TAN44/dJ1wkonMgzdZBG0Ocs1PAKbr6pu3BNzgKUwzp90kJpfF2pG1FqDkFDyO99ddPC J1j32O1zWZhbnCQREsfYAGBN5Azep6dqqkbVqBavgIV8X5kmU+GviRkt4YnaSwJz3f4djDoYq/x O1IQ9/hLEiKVnSYsP84nSsQpy2nkUplBgC9fw4uhqTRksIpIh8xOWmkVxsIDzKlKMHIIUWezsNr hBqXZpIcD7yLAZlarKsQMoFzxn+LV9NVXAhd5wEVRo/NhjpE6gn/0p94c6SCFA1idUvf/xyN17e oCK99C/Tk58NI8cCn443eMs/YcZ7Qtb+VCl2eL8c96zxrAx9OElyY3sutphfeXnubLe/3K9ZFWd illPSu/r+5PJgdctEhXVqEhvBohZoexcCrqSw1XR4w6 X-Received: by 2002:a05:6a20:c78e:b0:3dd:a007:cb2b with SMTP id adf61e73a8af0-3ddf8260c2bmr1610115637.39.1790142667977; Tue, 22 Sep 2026 22:51:07 -0700 (PDT) Received: from abs.sf.dndws.com ([50.35.86.68]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-87d1dffd6ddsm691486b3a.48.2026.09.22.22.51.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2026 22:51:07 -0700 (PDT) From: Tao Gong To: netdev@vger.kernel.org Cc: "Chester A . Unal" , Daniel Golle , Andrew Lunn , Vladimir Oltean , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Lorenzo Bianconi , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Florian Fainelli , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Tao Gong , Lorenzo Bianconi Subject: [PATCH net v2 2/2] net: dsa: mt7530: trap frames to conduit in MFC on EN7581 and AN7583 Date: Wed, 23 Sep 2026 05:51:03 +0000 Message-ID: <20260923055103.949540-3-gongtao0607@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260923055103.949540-1-gongtao0607@gmail.com> References: <20260923055103.949540-1-gongtao0607@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260922_225108_896183_643E2FD2 X-CRM114-Status: GOOD ( 12.10 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On MT7531 and MT7988 switches, trapped frames forwarding is directed to CPU ports specified in the MT7531_CFC (0x04) CPU_PMAP bitmap. When support for EN7581 was introduced, it was assumed to follow the MT7531 model. However, on Airoha EN7581 and AN7583 switch IP, setting MT7531_CFC alone is not sufficient for trapped control frames (such as STP BPDUs) to exit towards the CPU port. The switch forwarding hardware also requires the MT7530_CPU_EN bit and MT7530_CPU_PORT field to be enabled in MT753X_MFC (0x10). Without this, trapped frames are dropped by the switch forwarding logic and never reach the CPU conduit. Include ID_EN7581 and ID_AN7583 in mt753x_conduit_state_change() to set MT7530_CPU_EN and MT7530_CPU_PORT in MT753X_MFC when the conduit becomes operational, matching the handling for MT7530, MT7621, and EN7528. Fixes: 2b0229f67932 ("net: dsa: mt7530: Add EN7581 support") Acked-by: Lorenzo Bianconi Signed-off-by: Tao Gong --- drivers/net/dsa/mt7530.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index 20bb07fac0f7..92b5e949ffab 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -3338,7 +3338,8 @@ mt753x_conduit_state_change(struct dsa_switch *ds, * interface is up. */ if (priv->id != ID_MT7530 && priv->id != ID_MT7621 && - priv->id != ID_EN7528) + priv->id != ID_EN7528 && + priv->id != ID_EN7581 && priv->id != ID_AN7583) return; mask = BIT(cpu_dp->index); -- 2.55.0