Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2479070rwd; Fri, 16 Jun 2023 04:23:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Dm7/m57mYCtiK9iRLyBNjLWGMntsTBECMEnnUtSFq3ZQCu5zp4IcIQskz5XGeFGOsbSRM X-Received: by 2002:a9d:5e04:0:b0:6b2:84eb:31c7 with SMTP id d4-20020a9d5e04000000b006b284eb31c7mr1586300oti.9.1686914631745; Fri, 16 Jun 2023 04:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686914631; cv=none; d=google.com; s=arc-20160816; b=hUJujWASx46h7uwARZV0aCYsI72Xr17D1th9vI47yCTWokiUSiO4ziBjq3Q7E0hVln Q/3tsmS5cprXe/2+mFRsOvTuswoUlNNcIMuQsmu2Pp+nWztQ9ySjKaZQI5XT8MetrILN MHa3zNH3EQI09olNoid8ikq+94aad4Ah+2jsiHuJLW0GeiYxvISQx7FB8TSVTdzGToO/ tl/UrgdadlKRzyY1tbgEsA3/GpENrEMFwsblyqcMU9ibDMcNtxRwW5xjonzniSQqP+Uu faOPDh6HgRdX+ps1x7V7+UdGLPVjrk8A7MGP6ct/1gYtJYI8Hjg9iDvFlVjyABQj7LWf DFFg== 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=JWoW5IL6r7jB721BuhFKxOW5Wap3W5wMhPHSM+uYSlI=; b=v3isGK77zmwPw95yzhpzhRa6nUoMmjbJEjoYUQbaQlvEO3bD3iK+Im8OYkfyykezTU DqFB00VLuNrpjKJ05lQc1Lx1spbzPXCFq9iSqO5EafPOuRMwAXQOQxp8epcafkAWWlkf 8qzgIKIFOAsgfidQGj4CzzctCUw3JGo3haLOFgUrt0cJ10p+W3xjTe+c772mkDGWKDxc N4PCpTZJr1DF68R+bGEqHKAzJi7zxjWnJZHEN2eviUpbaaqdVKjKk6dNJcexl1ia9jRC /bC6IMU2Wqq6Aa6G2HCEWLAAUvQ+ZyNa9GRSyGuQ7EyS6VlquA/Xz+BTLOdlbNWxank7 7u0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="NkC/a6D+"; 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 l21-20020a637015000000b0055013415f30si3000128pgc.689.2023.06.16.04.23.40; Fri, 16 Jun 2023 04:23:51 -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="NkC/a6D+"; 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 S1345485AbjFPKif (ORCPT + 99 others); Fri, 16 Jun 2023 06:38:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345815AbjFPKgM (ORCPT ); Fri, 16 Jun 2023 06:36:12 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF866A48; Fri, 16 Jun 2023 03:29:58 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-970028cfb6cso80162466b.1; Fri, 16 Jun 2023 03:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686911355; x=1689503355; 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=JWoW5IL6r7jB721BuhFKxOW5Wap3W5wMhPHSM+uYSlI=; b=NkC/a6D+pzeIeQuTBTiX5xSElWEB8z2ovO+3YuyHCVT5teyTCpxx0pkFKeFCbLIiRR BVfuiAmZcooipvYO5H1LGB7QH2Aqnh43eeihivIkkVtYSr2mtmFmxsPprSEBDKcflbvX 4QIzuCuPibmBAflnx8nerreiQMDow0MQEcBAcanloz9R61w0buRJvmt0YRlI/oz86kdz FLxtRlwRPpnwm89ZUNzwEyQ/WRMh7AG+Fqf4QZB1MraPbqYhf4BTin4Hrq1OH2sD2cmU Bfskg9TdvtnFbb3hZlF1pbTZuDA40xQbPIsMmLZKOUnXwE73e2r9qNkH9bSybCbgAarA RyoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686911355; x=1689503355; 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=JWoW5IL6r7jB721BuhFKxOW5Wap3W5wMhPHSM+uYSlI=; b=K8q0Yb4WQ1T0nGECp7tbkRLyT9ZTLHcHLixlQ5iuJQ0fiScaXpt8ZY39MS+RL77kpN uWrEipAZesQjSpKN0URpqDjZBeJUYk/HXQLJtXvQMgLHUrZ/0hjMB7+AS53F7QEK6EJo x4YQc+ibF83qTZs5YRcBxyTZdNbYwroCtV/gTtzbrsoYHilyk/bgDL3wggXEsboA3N/I ehsKW3RD5ECV+s2nx6obrJkEAKv5SRVoMsvUaqcdRsDyvJ5f+iP2Bofxofr/2IenEoG/ bniv/GOTzKvP+ddo2ZzFSILjuUozbNc352kz8EAiHahbEix0Dk36ERzlMprQHWe4h5l+ Isbw== X-Gm-Message-State: AC+VfDyCWQnmIwpoenrM2CH6Y6lsfJK7BlLhh+HAOT0mWOpzgGxCOnY8 5j8iMs7YlbcfbRNuhK9oIc+JQgdUIKdPaA== X-Received: by 2002:a17:907:7e99:b0:978:930e:2279 with SMTP id qb25-20020a1709077e9900b00978930e2279mr1356987ejc.52.1686911354816; Fri, 16 Jun 2023 03:29:14 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id lc20-20020a170906dff400b00970f0e2dab2sm10525868ejc.112.2023.06.16.03.29.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jun 2023 03:29:14 -0700 (PDT) Date: Fri, 16 Jun 2023 13:29:11 +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: <20230616102911.yqwjjs6gezmhq72l@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. I would add a simple "(identified by ID_MT7530)" to the commit message here. > Expand the check to include them. > > Fixes: b8f126a8d543 ("net-next: dsa: add dsa support for Mediatek MT7530 switch") > Signed-off-by: Arınç ÜNAL > --- Reviewed-by: Vladimir Oltean > 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 >