Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5205598rwd; Mon, 12 Jun 2023 01:19:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BfhiRn88pPDDCJU2ddcvpf76r+kcmYVkuXldYTPDe1I3qgf2Gd6xJX4PPp6bAK6vddrk6 X-Received: by 2002:a17:90a:9cf:b0:25b:c91e:8bf2 with SMTP id 73-20020a17090a09cf00b0025bc91e8bf2mr3719697pjo.49.1686557964157; Mon, 12 Jun 2023 01:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686557964; cv=none; d=google.com; s=arc-20160816; b=gj/Fuc6gE36qCJf0TIRghB798BWnEqOYX9WEt3oM39yn28frW17FeQStLwllmdyTnx 5B2tZtGRjfriwHrN61nVQpmeft2Q14XtdwJw7Ka9DJ7OcJOg59XUSulkRjfWXJ1Ams7Q yqqwe/3l8XFQJ8Jx6oWgpeltqDaFiX5gjmFfCvhhvKM6SauLLdOXYrP5TjpdlzgiKbSS 5y6BiM6RptFY38cfepGp/K6Dr7WQ9rRz4avaIwkG1Ps442d2R3DauPOv8Ow4gMfH3SpW 9Ps8BJTljMJe8T+PhD3DSCBwuOAOuT5VgAsKs1f013+yHmCdelbZqA4qKRd8RaMH5jBF uDDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vV/mTXh/P+HK/c016dPT2W6UYy5AOVr8uOiiran4liM=; b=A/LpuFH+K464SoYgAsFwZQdLt5noai2PPMGg6mUwDdJtRCji6aYqnDRRrYJi3BGBxt ah29FGUUMMPZPBsYF6wZNHJ/esoSvbc8OP94IOyhBJ4Dabi4dMZZozpJbSu9Rq5v6vyo W3g4xv7x4gLtmFJIc/2dZ3kU5fTOuBpMmvatbJ3P5qhTCqb04kZp+wzHMi8vZFrGKsCM 9M2/Y36PLb7osScOJqL4+Vhj8XkYX5odIRFDwmv16BJ7s48taiNw0N0qibTuwvYVIRKB 9gEAB6Pi7oZI/yxymPi1Alc2Hyc+wwxJ3mViadNvIHdoEPNBq40nP7FEhT6N1M98I78P 0q3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=iegb2sJE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a17090a6e0900b0025bde6127bfsi1586027pjk.53.2023.06.12.01.19.12; Mon, 12 Jun 2023 01:19:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=iegb2sJE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232777AbjFLIBU (ORCPT + 99 others); Mon, 12 Jun 2023 04:01:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231646AbjFLIAm (ORCPT ); Mon, 12 Jun 2023 04:00:42 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83A2A270F; Mon, 12 Jun 2023 01:00:08 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f7f4819256so29112835e9.1; Mon, 12 Jun 2023 01:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686556805; x=1689148805; 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; bh=vV/mTXh/P+HK/c016dPT2W6UYy5AOVr8uOiiran4liM=; b=iegb2sJEV3NxeCdapW3bJRcA1eMQwKPGmzwuDTZNSQfK5LD346pv98ahxHWsYQi5z5 8vQHXORB+U9t/y9OSzfIBADoE8m7k8Rt3lMUCqlPfcc3gYcJkkP+xtn24kVbPq+eQaeR x4aGnONQQiYSxxKmcABMILnaTJUIt2tDpkAPF4OyHS/pPQhuTy/BT4GfsDowD2bTbomC aLkNafaJC5nexOEDu2mKYbhp0nFv4AshOWODck7ACWkzkDzZXToMzVaIryaO+bjRA3gl w3msHvZhDcsPphd+OYLTQ/0aGruy0jekDhdqXCgmnJAgdD0ri1TjKUhMtuZclBFjdnQS CJQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686556805; x=1689148805; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vV/mTXh/P+HK/c016dPT2W6UYy5AOVr8uOiiran4liM=; b=C91aHbBKdUhtv4cX3eb+l1F6HbcBRLRZSH4BNSO45ssDifDtMup8wce2L4+Nd61ITS xz6K2FhynOGbdiqHKMdw3LzYFwrPOiCQzBAF9BsuXPeEGCgqe/KxU5bRs4iwK7ylbbVQ 2e0lfqp3/xUbR6rpHVksZdZGMIiHV9tAOSf8x59fc3Bu99J4Gg/4AHTbf/rDN4zaz63z 8Dj/oexSlNRllHRArvAhXefuUDw6GR+E3aOPim3CLVoef+77Cgo2MHeMOfUekQvKi4eo d73it2zSh16S03qWi0Xbf+AF+a4hAE4207OS55y7LrQwMJ/8zcL+TZsRcB+v29NBlQXr HxEA== X-Gm-Message-State: AC+VfDxk02Epl9u9aLAXlk6hriCzrMX1xU/Um197BcJIvJOZhSfgjlrG nOJXVsRFbiU6kWWGEzKlJvI= X-Received: by 2002:a05:600c:2212:b0:3f4:23b9:eed2 with SMTP id z18-20020a05600c221200b003f423b9eed2mr6563679wml.38.1686556804733; Mon, 12 Jun 2023 01:00:04 -0700 (PDT) Received: from arinc9-Xeront.lan (178-147-169-233.haap.dm.cosmote.net. [178.147.169.233]) by smtp.gmail.com with ESMTPSA id y22-20020a7bcd96000000b003f7f2a1484csm10552195wmj.5.2023.06.12.01.00.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 01:00:04 -0700 (PDT) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com 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 , Russell King Cc: Landen Chao , Frank Wunderlich , Bartel Eerdekens , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH net v4 3/7] net: dsa: mt7530: fix trapping frames on non-MT7621 SoC MT7530 switch Date: Mon, 12 Jun 2023 10:59:41 +0300 Message-Id: <20230612075945.16330-4-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230612075945.16330-1-arinc.unal@arinc9.com> References: <20230612075945.16330-1-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arınç ÜNAL The check for setting the CPU_PORT bits must include the non-MT7621 SoC MT7530 switch variants to trap frames. Expand the check to include them. Fixes: b8f126a8d543 ("net-next: dsa: add dsa support for Mediatek MT7530 switch") Signed-off-by: Arınç ÜNAL --- 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 ef8879087932..2bde2fdb5fba 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -3073,7 +3073,7 @@ mt753x_master_state_change(struct dsa_switch *ds, * the numerically smallest CPU port which is affine to the DSA conduit * interface that is up. */ - if (priv->id != ID_MT7621) + if (priv->id != ID_MT7530 && priv->id != ID_MT7621) return; if (operational) -- 2.39.2