Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2009558rwd; Thu, 15 Jun 2023 20:14:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HhfPj6K1BuedF7DWicTq3HwJsghjC76A9eS8r1/EVnqAUzJaBL+fAz0Y/R1wBsyvsunw7 X-Received: by 2002:a17:902:cecf:b0:1b5:25f8:2152 with SMTP id d15-20020a170902cecf00b001b525f82152mr785235plg.56.1686885277824; Thu, 15 Jun 2023 20:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686885277; cv=none; d=google.com; s=arc-20160816; b=wtVMeli6Q3nOy+I0ZqtB/X/GTrd/GBpjMxpdYnX2yLLo6hrDfNzFm5mlhgntEGENgt mnyhKT1sKCZROoY1SnwcI0+hOfb+4zdUYrGzNKsQDq3+xSExah5xTrlu6pvMVkaK22k9 YjvIIEu88KvVqE6+SHhNmIor8Qh89PcH8Uwu86AyKP3WzGL++/rFM01hGU+dI9V8oDLK KeZ8b7w0Wyeu4yqXOSy3f84oQcXZjzOrJ2iZqUAWaRwAOgYxafGdRCRiKY0h1dQr7yfA Fs38UQ2p4abwKT+pgwLh7RVCgIxVYd/JcYUY4l64iOXPdrewy1m3ytiVHE1t36IIr4I0 R3Yw== 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=JH9rgnoje5CiNXWobY3ZLpf7/bXY7kCTB8+Con2/+OA=; b=dVHl3iN9MkrvO7hqnxtFs9V45A9U3qR3oRax4W79XEXJDpNBAITg4FKe+hlNhPcRN8 0HhGiTDvPTkvxhoh4cO23sCSzFAwGRjPRuP92YS2R9RdzEdMr/8jSZPGg6weX9rYzWJY yfc7eM0OjhxKBA4rkmQueEfsxku2FpBN/euDK376FLMwOKY+nZ4Oa/ELWJbb6Z3YLzJ/ b8TQLoBQre4mfL0Pq6CiddvYSoepfuJwBX/hbf5AidnNTah9y8fu3vGUCo8upZYQ4ONU MEErKRyPzVEGD0DwOMc7svxXdkL+7jy/56WCL2QHUc9U0M6Vc1zmwNobvKcYnjF/xrhf RJmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=nbAUKxqk; 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 u10-20020a170902e80a00b001ab23cbe13bsi14820929plg.104.2023.06.15.20.14.25; Thu, 15 Jun 2023 20:14:37 -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=nbAUKxqk; 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 S240680AbjFPCxn (ORCPT + 99 others); Thu, 15 Jun 2023 22:53:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239840AbjFPCxi (ORCPT ); Thu, 15 Jun 2023 22:53:38 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C29B2954; Thu, 15 Jun 2023 19:53:37 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f004cc54f4so170115e87.3; Thu, 15 Jun 2023 19:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686884015; x=1689476015; 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=JH9rgnoje5CiNXWobY3ZLpf7/bXY7kCTB8+Con2/+OA=; b=nbAUKxqkROBMD6br9cgrAZn8uavT1rxIO62rQiLnqdRERiQ41WRJ1ZoRrz+JwNhpWO COQeiWJ17QHdyIBU+7Kl4Uy3mNsxqZ1+ySu1e05uA31KPc/5XLADq7OKx4c/IBD7dxxn PINZKSsz14Hvfa0J+1MPAteXtXocCojlIAg12dKW6an3DInGDCeBcBNIum/rSrBaS0vt +P67NDJ6avMMTxEtLw7VGE5IH+6Z8pGYAnVlB8ItIzZUVwclykbcQgJM/iZQ9awFRMt9 yBWMZSuf6pSQ30YQtqNusfmSSu8pA7HCpyoQx6IhyTuOuwQ7hLfX5l5xL1PD7xOF7+mo lEjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686884015; x=1689476015; 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=JH9rgnoje5CiNXWobY3ZLpf7/bXY7kCTB8+Con2/+OA=; b=Gw7YThxGSFFJ3koxMVPL+J3KUxC2Ob+5DBP4hzJrG9DmuQy29creyike0+IRIkhPxw yKNiOiKzcK9eCtoaiJXeROp7S2pzdNoQxkL5rnKgOSsMWGze0j2V2kx4d1JwGbXfqq91 X/mECSx5tbyJPr7uygN/PK8wn8oA/quGU/SkPDiTNXsJdNjwvHiZhUr294l3qfCq6xCI cFEidTH2KoVlPLrbrxhLxe9Fdh06BB7c90HlmOCulRvhuU8piWEIHYIdZ/Yur/Dquwnp ad4ZMbIgHgAUJfkh/Bx3QqHRue+FZvrnVoBgUfve3qulIaHmCb7H6mB3Tgz0yhJJxnE+ BMPQ== X-Gm-Message-State: AC+VfDwGrMMAou8M1GCqRGyNHBr68CTyvXpRdbTiX3wnP+ICmNjXyc9r M43N8K8Xx0c3FGTn92+yDuU= X-Received: by 2002:a19:8c4a:0:b0:4f3:8f3a:f98d with SMTP id i10-20020a198c4a000000b004f38f3af98dmr257461lfj.45.1686884015414; Thu, 15 Jun 2023 19:53:35 -0700 (PDT) Received: from arinc9-Xeront.. (athedsl-404045.home.otenet.gr. [79.131.130.75]) by smtp.gmail.com with ESMTPSA id v15-20020a1cf70f000000b003f8d770e935sm890328wmh.0.2023.06.15.19.53.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 19:53:35 -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 v5 2/6] net: dsa: mt7530: fix trapping frames on non-MT7621 SoC MT7530 switch Date: Fri, 16 Jun 2023 05:53:23 +0300 Message-Id: <20230616025327.12652-3-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230616025327.12652-1-arinc.unal@arinc9.com> References: <20230616025327.12652-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 0a5237793209..e9fbe7ae6c2c 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -1007,7 +1007,7 @@ mt753x_cpu_port_enable(struct dsa_switch *ds, int port) UNU_FFP(BIT(port))); /* Set CPU port number */ - if (priv->id == ID_MT7621) + if (priv->id == ID_MT7530 || priv->id == ID_MT7621) mt7530_rmw(priv, MT7530_MFC, CPU_MASK, CPU_EN | CPU_PORT(port)); /* Add the CPU port to the CPU port bitmap for MT7531 and the switch on -- 2.39.2