Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1625397rwd; Tue, 13 Jun 2023 11:39:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7oMbLpFaPlEGFE/q79ay3BzKKWTcIRYS2DEU5rKYdnv3Vz+Yfl3+mHHd6eMi8KIv54DOBT X-Received: by 2002:a05:6a20:9589:b0:110:6c4:3da6 with SMTP id iu9-20020a056a20958900b0011006c43da6mr10678673pzb.62.1686681559562; Tue, 13 Jun 2023 11:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686681559; cv=none; d=google.com; s=arc-20160816; b=lnyjlH+joAkOxNLlxK+lx6NJGtUdwZ9x/kiYe92pQ01VnKCY8iF6U56cHvQz0gLDno txEWyALeQJ6k/dZ6WIrNClGL0ydZ+uSi+7GfmBe6H5eUgRrUcAr05B3HIIYhfoBiWpe8 uCMZz9GX5L+/ps9jPE6ySOteCwibRvbuZ5+YMZ0/Qw16cPwBQxvKwP/MiwnjocBHtGDi tKtKFSqv40T9kXfFZMnB39exLkuGxClbrt9Adkqm5eJpTmPHn6K90GeCMRqzm/ysHP95 uV5qRzNk16v50tRsAG+0PJ8gHkjmX7fpPTueIfPY9ChYiU4HDmg+8wIYZ+B406Nw4Kz4 4fvw== 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=DXfkpTd4BgNrWMUgFq3EjpQXH5nUJQkyJKKnkCOa5Zk=; b=DnDQ/zvFW5qP9f+qqh9uifY7oQ5aDD+W+F3L08jVVn0Urr96buKzxA9OgHE4yffmWZ NUprqPmJY3DItMrEGFbK8+xHGUbeu7mJTXr8zuKERH1F7GtXZsY1KrV0iYi3uJLEpEW7 h9lRDSCj/C9xsrHFYRZgKTkPi86PtyagRIb7k0EoFLEaDnSsZZd5OhiMpNrc69M5ViYh +2e5igZtGL9B8AbrCKZmxbxp2ZsHZknPDmu+Exk9uDKObbUWMCy7fUBQ6UZ4Wci/1v42 8yR5zD6TB98Z336OQ5vFsU407kwaBmxM9Q5oI1u45zGDTVX0NY6bvt6+R+cxbmt7BJgH VRoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=O19PVe2L; 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 f15-20020a170902ce8f00b001afe7ef68b6si5736408plg.452.2023.06.13.11.39.07; Tue, 13 Jun 2023 11:39:19 -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=O19PVe2L; 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 S239319AbjFMS3l (ORCPT + 99 others); Tue, 13 Jun 2023 14:29:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230491AbjFMS3k (ORCPT ); Tue, 13 Jun 2023 14:29:40 -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 39C2710CC; Tue, 13 Jun 2023 11:29:39 -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=DXfkpTd4BgNrWMUgFq3EjpQXH5nUJQkyJKKnkCOa5Zk=; b=O19PVe2L/0aXNxgPLyhPb8w6Sp nKuVjsn1qMFhWQsMddhnsavhxJox9cdxWE13H2FW74HQKEn+TFPm1hi2CPvQHIEw9uOsJrzyu5Y5k ONqAWhYz/mbbqXtDYrWrivVe3x/1BZAERDePJZ9ZLyTAsVybcj0vb+4H3ZAL2iMHPaP085RNGaJBy +OMPtcJKrZpMULnW1vHejvvo9/kRP3j0Ui2daorSwKMLccOabS9tbFd9DH8ARZCacQUVeYK8zvmZN zi1DSc0tcof9oVe2GuBWu4SZtL35rRYwXyxYKKWz7ucdpdWxW7XR1Qiz2a0qj7kRRH+oA3QQuEN5r SqhNpZGw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:43678) 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 1q98lf-0000Z9-GS; Tue, 13 Jun 2023 19:29:23 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1q98la-0006Fs-DQ; Tue, 13 Jun 2023 19:29:18 +0100 Date: Tue, 13 Jun 2023 19:29:18 +0100 From: "Russell King (Oracle)" To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: Vladimir Oltean , 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 v2 2/7] net: dsa: mt7530: fix trapping frames with multiple CPU ports on MT7530 Message-ID: References: <20230611081547.26747-1-arinc.unal@arinc9.com> <20230611081547.26747-2-arinc.unal@arinc9.com> <20230613150815.67uoz3cvvwgmhdp2@skbuf> <20230613171858.ybhtlwxqwp7gyrfs@skbuf> <20230613172402.grdpgago6in4jogq@skbuf> <20230613173908.iuofbuvkanwyr7as@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Tue, Jun 13, 2023 at 08:58:33PM +0300, Arınç ÜNAL wrote: > On 13.06.2023 20:39, Vladimir Oltean wrote: > > On Tue, Jun 13, 2023 at 08:30:28PM +0300, Arınç ÜNAL wrote: > > > That fixes port 5 on certain variants of the MT7530 switch, as it was > > > already working on the other variants, which, in conclusion, fixes port 5 on > > > all MT7530 variants. > > > > Ok. I didn't pay enough attention to the commit message. > > > > > And no, trapping works. Having only CPU port 5 defined on the devicetree > > > will cause the CPU_PORT bits to be set to port 5. There's only a problem > > > when multiple CPU ports are defined. > > > > Got it. Then this is really not a problem, and the commit message frames > > it incorrectly. > > Actually this patch fixes the issue it describes. At the state of this > patch, when multiple CPU ports are defined, port 5 is the active CPU port, > CPU_PORT bits are set to port 6. Maybe it's just me being dumb, but I keep finding things difficult to understand, such as the above paragraph. It sounds like you're saying that _before_ this patch, port 5 is the active CPU port, but the CPU_PORT *FIELD* NOT BITS are set such that port 6 is the active CPU port. Therefore, things are broken, and this patch fixes it. Or are you saying that after this patch is applied, port 5 is the active CPU port, but the CPU_PORT *FIELD* is set to port 6. If that's true, then I've no idea what the hell is going on here because it seems to be senseless. I think at this point I just give up trying to understand what the hell these patches are trying to do - in my opinion, the commit messages are worded attrociously and incomprehensively. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!