Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2391236rwd; Fri, 16 Jun 2023 03:16:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7qFPSDNEk9OHTH5/ZWrDqPFzbXY/zd5+cGnazfZFQOZgGjIf1+7ChSkJnkEQqRqJOLqUVc X-Received: by 2002:a05:6a20:2588:b0:11d:d636:21f1 with SMTP id k8-20020a056a20258800b0011dd63621f1mr1840686pzd.57.1686910600947; Fri, 16 Jun 2023 03:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686910600; cv=none; d=google.com; s=arc-20160816; b=jYP4qWG1MUhZ4AGgc3BWXg9MRIXH3IGEI8tJhJ8KF2q507V/8k4EkUWR4O4aj6gaPG 9Ev+Bdz0b8b+OiqneA4d+Syw2bqTTm1ac6WzM1PEH8auR/eH14NQpHPfLI8HI8tM8jhg d6Ck7ScYzmbKviNu6GFcY+AdY+5nqVObnPeQVA5Juo7LHLqmoaCyp0fODZXvYOqp4cER KlhMucKdJauhrVkxIFv85/7i6uQ4OfmUKYn16fyrTt4gEFy62QoE99wZ/l4OlFqrCZ/I m1kxjbZBc3IR/9dXFlFpEiTMqQz+kAR7RM3v40nKUOJzqTUZblcDvi83mXtDf9XNQZQ+ AU+g== 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=lGc6cCn5ldb0f04cDIkyWElzF87ruXWX4HidWgznLg4=; b=gFehGBe+zuQsJOI1enU6mx2P7wBKNGievEKIDoKkeCa3AICDSNQ9fYOwLoT4bcipmJ GwJOhpmEuwjr80qyVStObQGFol7iFvQFzFvu25n9HUrpvRyW0ZeGpi68thCvktEhQGll W+N6cP+sSsQ4WBXA3hkX4NHwuXVOv9AuGIBsWqBgEEXQDU5wfkhMfbuW0BQZm9kekRHW 002Wx5Dkhz8rx01vsAantEaY8jlMX5YMooVUnXP1+6onkrj7RDcoDD+Jc6ZOKulRiaxI t1Ol19vWM8DH/SBWwezR3qxe28BgPB4wjuSltlP/BXXvVEpNzhlWJqhf7CwY1FCbBhUm NW7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=rJoVgHkf; 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 f23-20020a637557000000b005533f397576si1261679pgn.46.2023.06.16.03.16.27; Fri, 16 Jun 2023 03:16:40 -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=rJoVgHkf; 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 S234426AbjFPKDX (ORCPT + 99 others); Fri, 16 Jun 2023 06:03:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232377AbjFPKDV (ORCPT ); Fri, 16 Jun 2023 06:03:21 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 747512137; Fri, 16 Jun 2023 03:03:20 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-9741caaf9d4so69527666b.0; Fri, 16 Jun 2023 03:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686909799; x=1689501799; 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=lGc6cCn5ldb0f04cDIkyWElzF87ruXWX4HidWgznLg4=; b=rJoVgHkfAir/SjJT3wdJYIhF8WxsoNEsrTNCv/xcRwIbZQFxH/yEV4O3D9+R65KqyM GtpnSCIqc79/W8wTP+fcWgukEciWNlGS19ef8ZkvO4IVWoM0VRwTvu7/WxYd2eLnVpeg NQaoa1rFJtSn4uz2CrqAOgaKyaHvKK1Tq+cOb651QtMG/TsjjfKsZaC/i6R2gLtny5MY szjWuaoC0JuO65/LxQ7yXEyLk122NDDqifUas2M/BvEZTSd7cO6VhDSm4zn/KIE0KYrf Et1nhGZBqll9NnREpW6u4iuFLxSJevFGi6kRz0wqw10ughlKafRCGX0Ytn2K+HO7ROOo 4f+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686909799; x=1689501799; 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=lGc6cCn5ldb0f04cDIkyWElzF87ruXWX4HidWgznLg4=; b=XWnEafxLwzUEfvOQvDgmMrQqNIzFqwVJqLz9Cc2RbWeVd8t1/w/VMJDfp20ld596+i 719qn1QL6/d6O4ZTFC9vqPuwaXXO8O7McA5PH1aFR6SdeiI+CGqvoPKzQUnSCUUVS2UN im1rlaieLjmghFLiT0Eif8tbhav4hIxxNqmNOFbUT17PeStc6ernTCXaX+uCFExqtqVd tu3gaWSI2+plWmGHSblp73uKPIwec1DwgbJyg4Zp7jO9y0mspL+OEV2LxLPCIRKWQsoN LAO98gukj1/kCpdsNXFy/VItdtD3HkeM9zT10Ol7zKOp2xtPxSMngL3hI2iA+xT7RNay Ho3A== X-Gm-Message-State: AC+VfDxfGSmuM8o0e2fbm+0hDj6y/nduxuFwL3sipclbzEZFpSEVg1C1 I7mi67aw2iWpHRM05dUAhH0= X-Received: by 2002:a17:907:9615:b0:977:fff0:31a with SMTP id gb21-20020a170907961500b00977fff0031amr1670482ejc.74.1686909798531; Fri, 16 Jun 2023 03:03:18 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id d23-20020a17090648d700b00982c84e5dadsm1348006ejt.170.2023.06.16.03.03.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jun 2023 03:03:17 -0700 (PDT) Date: Fri, 16 Jun 2023 13:03:14 +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 v5 2/6] net: dsa: mt7530: fix trapping frames on non-MT7621 SoC MT7530 switch Message-ID: <20230616100314.x2qak6t7uxo2qnja@skbuf> References: <20230616025327.12652-1-arinc.unal@arinc9.com> <20230616025327.12652-3-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: <20230616025327.12652-3-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 Fri, Jun 16, 2023 at 05:53:23AM +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 > --- why do you say non-MT7621 when the change specifically includes MT7621? What is the affected SoC then? > 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 >