Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp149845rwd; Wed, 14 Jun 2023 13:41:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6UaZ5Am+fV1PqIxFSA/QyHZkcnyyaRwEqYGZSy7ISjeSc3FYeK6/+ORoDWUHcfaW0zEQxQ X-Received: by 2002:a17:90a:341:b0:25b:c08d:2beb with SMTP id 1-20020a17090a034100b0025bc08d2bebmr2585100pjf.17.1686775303280; Wed, 14 Jun 2023 13:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686775303; cv=none; d=google.com; s=arc-20160816; b=o+wQMNrOuMy4eKMzZ4+YZuQFZYz3aD0QnsXZkXbqL7zYAbPn6/lHaTJ/3J2Brnag9v aDgj4rSuR8ItxL6SIc2vTYVYI0dHnRi/gMdLcfZIa80YvRCvpANcFel1MaD48uNaGhMj RqkSh4qBKXg/91kTfEf7fQigYGOjEKxH3LLqEjgSHasT1Ar6znXi7BN1J0ElmJndIt/y m6ay1a/0yrWaS8Wi2ThpW6B5BdVOnmdMrl7vZCynmAPOtzMoZtO/V76XJCyeIVY8LaAT xTPeuoFqellVImTK3od+0enlRYEmVZmslrdVzaxYvpnp7uRnh6a/LWQSwuh3KAihXxv1 O4oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EXEmZeBPCZiFdr9YxZXRhaXtEfM1eBOUuJMpyu8UykQ=; b=eRCWWkpwlw9T81fA8NNHZMFQYJOkQc6B0RGZv65NwT2F5GCj0u5RML2qZJbnuoSkxG dQux0DC4EKfRXtepv62QSlMo8MJ1eBJ/ywdacuU5l2901kuBNbJNLk4IIjJPMu99zt0E 9WFBjjh/8dYlkkRht8J1UAoPvUyT/kUg5YUusjKyaoAkrcFWuAuiCyw4UDiHUrmwEloC pnoBl5fb0+aRBFBFiw7SJ2A9ziEPdEAAFpbttpHb+dRNe0YNBxR43Bm/j3okEXOw3HsS u0V+DQNRzIG8LvS9cRpfKhk5RTNofhBk2D+abSZOtky3YSxntql98jX2h1NpvvVnOlqg X2eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UUQ+phIu; 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 y2-20020a17090a644200b0024e5ed38294si11264638pjm.66.2023.06.14.13.41.31; Wed, 14 Jun 2023 13:41:43 -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=UUQ+phIu; 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 S235084AbjFNUNo (ORCPT + 99 others); Wed, 14 Jun 2023 16:13:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbjFNUNn (ORCPT ); Wed, 14 Jun 2023 16:13:43 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15A67DC; Wed, 14 Jun 2023 13:13:42 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-977e0fbd742so152684866b.2; Wed, 14 Jun 2023 13:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686773620; x=1689365620; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=EXEmZeBPCZiFdr9YxZXRhaXtEfM1eBOUuJMpyu8UykQ=; b=UUQ+phIuaAAFmruO880pSg7Uy3wykpgG+Cwi2IzwBlpp2WHme3PRHlEipKM7kGNYa8 S8upIJAPvUAKbIlATfx3Ze6F+jAKxJxMAYDPKfiumQx1fMiWFRHg412REF67LnKRVgCu o8XE2u2WMI2aN8NIuKO+CcwFW5ihFWI3nPRvwLWJGbf18pCBB/sXVa//d4O133PPW1fl HGgCTAvFe6j4MbqhsYMHfIubHBlZ9tfHHsN1W3RQQTu04u+hlh8ig+OblzJeCSfmXqf2 kxr9nERBrUEitjaws4ckCyRa+gXxQL2WgS8wMvCniff6RpWZonb71w66wUyODvaev1T4 BiZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686773620; x=1689365620; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EXEmZeBPCZiFdr9YxZXRhaXtEfM1eBOUuJMpyu8UykQ=; b=kl7z47ywY93jPcQ4YUcCIKKCLtvmuiKgopODNrbHqVksKKp9Hs9ce6tBbKZmnrubQg jkidfCIm2uvHf36pgydTZZcVN79uIkFsI7gX5BuyTiJdGKTF1nzc7tBrt50DVsHFF7q1 nglsvGwozitU8OsZOOX+vYOG0XSQDO3EdYkmooTHUN5856X0dSMsD5IKv3Rm3tegJHXj AWvHF09n5WQtTt9Vb8YRDSlRBSyElJ00cTShaNfGtkeyU9iX2gkkDMx5v7/Dt+q8nOp/ FrUCZt+fQO8SiKj1uHQQbnUpdUA+1VC0paLgfcI+CgM/B42lnWtdcmHXMjhpRRx+GlML RzlQ== X-Gm-Message-State: AC+VfDxvXQSuB8cHTRayOqwAbk8KXBs6SeLpud+agQOljId5tSk4ptD9 5H4tFKOZ4/kRnJ+mx8p60e8= X-Received: by 2002:a17:907:169f:b0:96f:2b3f:61 with SMTP id hc31-20020a170907169f00b0096f2b3f0061mr17542704ejc.7.1686773620212; Wed, 14 Jun 2023 13:13:40 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id p4-20020a1709060dc400b0096f937b0d3esm8470966eji.3.2023.06.14.13.13.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 13:13:39 -0700 (PDT) Date: Wed, 14 Jun 2023 23:13:36 +0300 From: Vladimir Oltean To: arinc9.unal@gmail.com Cc: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , 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: Re: [PATCH net v4 3/7] net: dsa: mt7530: fix trapping frames on non-MT7621 SoC MT7530 switch Message-ID: <20230614201336.lf5hqrp5nw7han4r@skbuf> References: <20230612075945.16330-1-arinc.unal@arinc9.com> <20230612075945.16330-4-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230612075945.16330-4-arinc.unal@arinc9.com> 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 On Mon, Jun 12, 2023 at 10:59:41AM +0300, arinc9.unal@gmail.com wrote: > 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; This patch and 2/7 should probably be reversed, since 2/7 is not going to net. > > if (operational) > -- > 2.39.2 >