Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2404383rwd; Fri, 16 Jun 2023 03:26:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6BNqbFfo6MRkUJPWSW6eDi1olY/YBxat8/5QmF8yQirifQX4B2waEMTkaH1ML1phKTNvN/ X-Received: by 2002:a05:6358:1a91:b0:128:b20f:f965 with SMTP id gm17-20020a0563581a9100b00128b20ff965mr1074739rwb.18.1686911193698; Fri, 16 Jun 2023 03:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686911193; cv=none; d=google.com; s=arc-20160816; b=jsedyLIRSebIifbiUdejl8nwpZj/H4XbXZ4vbulSLbhNqgoO824hBd88LP3vt4ME1+ zTO5V+qpYFN8oM+Q3xf09T4TZUpdx2AJEW+Jgfx1nzXHlh8BW92Y5DSM2MX/pE5sF4mB gGUBR5w5ht603IY3ANJm2izXRh4kCzt0Y9HBg6bogCXz8iUHtr0h4NQt7zWtScwpyk8J 7s7p6SWsEM5Q+agKXeCuGSfAjfZ8Y0kmaJatkXk08BSb5OBrEUOLrliiFc1o0Ez3OIKy u+nPmpLbBzNtqrg0dOfwFiFYMkriivJmX2fh7Kvk6o5YwEQWYcTzvdVxj1KPWWmZV9Bv OoAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ldYgwDt7voxDOksHBbsKUYFGw63dx52D9aj9AQa3YSg=; b=MluLSDzYgoJZptmTJz69AW1G6J1ZlXrTscTAh+ri7zEnRVN20UX2w+JhqfChbRxHZm vF+Lz1diSFcd7A0LBh3cyi9skN3vq+i80BnKJSL1BCCDIprpWJYtvvrfiIaaiS+HbWcE /u/NkUTLFPPiIZ4oTKc4ENcFoRxWgT/r/4Scam4LWflasApQEPR/fKcDz+SpbVTxSzyo 0rZy/PXb5fl0nEJmnxtW4HGXR3/w8gzVWrRG6tpulBvgC+BVWD361HOBznr/bcGfVjBN twqsCCTxzGiGHkqR0dooBfHvCkRoU7okMwuixwkEtruVKW46G/k6RPh1O/kuDN60yZWG vixw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=0+liBd74; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o25-20020a637e59000000b0054fef4ea777si3810344pgn.853.2023.06.16.03.26.22; Fri, 16 Jun 2023 03:26:33 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=0+liBd74; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343610AbjFPKSi (ORCPT + 99 others); Fri, 16 Jun 2023 06:18:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343595AbjFPKSQ (ORCPT ); Fri, 16 Jun 2023 06:18:16 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4A8B3A9E; Fri, 16 Jun 2023 03:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ldYgwDt7voxDOksHBbsKUYFGw63dx52D9aj9AQa3YSg=; b=0+liBd742WkgK8Mdlp4lP6ky1Z mwbmgUC+sDSAA7CM8Q8EOPIq7cF39x1/cbeQ73mLiZDnQIpbgu3Z2r1CL4tQnZFIcwWO03mecTh5A JfAl5V3Is1NfjAMg8g0SkaR0cFzU4FlpVpuAqA+t4fMJX3XQhWm/Wsl/1LIe4Hp/b0ZKP/8rV3A0X Ma2Kfi1bcRhi5e72QP1sBwwuHs4QVoKP+lMacig1m+3pups2ggSs7WlYcWMgusypgbOgL9aCzwy6/ C3SjPly7/QQokDFuVgR8vx0224Jswndt21p0I+loXubSlc1MD/jbfRMcBFdEjL3BV/A41g6y6pPIA wqkcWFJg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33540) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qA6Wk-0004lz-BV; Fri, 16 Jun 2023 11:17:58 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qA6Wg-0002QQ-6G; Fri, 16 Jun 2023 11:17:54 +0100 Date: Fri, 16 Jun 2023 11:17:54 +0100 From: "Russell King (Oracle)" To: Vladimir Oltean Cc: arinc9.unal@gmail.com, =?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 , 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: References: <20230616025327.12652-1-arinc.unal@arinc9.com> <20230616025327.12652-3-arinc.unal@arinc9.com> <20230616100314.x2qak6t7uxo2qnja@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230616100314.x2qak6t7uxo2qnja@skbuf> Sender: Russell King (Oracle) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 01:03:14PM +0300, Vladimir Oltean wrote: > 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? Thanks for falling into one of the issues that makes reviewing these patches difficult. :/ > > - 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)); I *think* what the commit message should be saying is that the setup for the CPU port(*) is necessary not only for MT7621, but also for MT7530 variants as well. That can be construed from the commit message, but it doesn't easily read that way. * - in this case, it's the CPU port field and the CPU enable bit. Note that CPU_MASK only covers CPU_PORT() and not CPU_EN, but this doesn't matter for mt7530_rmw(). -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!