Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1596225rwd; Tue, 13 Jun 2023 11:13:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RLq6smnKBrp1ZOZMsNMBl7yJPAAWhThT8b/FUWImDmKmXLkjQf0RxUcHXHnqOpZUweDCe X-Received: by 2002:a05:6a20:1606:b0:10f:708b:bb28 with SMTP id l6-20020a056a20160600b0010f708bbb28mr15886857pzj.7.1686680017948; Tue, 13 Jun 2023 11:13:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686680017; cv=pass; d=google.com; s=arc-20160816; b=uCXSatkJmbkPUa87Ht2lmRCN/YJM8PYIwpEl37gPYRtmymUZm8J1LhDKQfgX7DxDqb 3kWjUY4D4X5aCKWaKmxG/vRf2ByuzabXZiOuyXrEKMhijIhpCiP96n4nSdKorsB2A1D/ JtX+vm+QJRrTgl6lsMiZaQvx+Y+uTOpa3QbNpCuT7b6b4aHMZCDo45GTV+jMlf88hpkN Fg0FYVql2ixx2l23RmUbWAV8cLMkDQXFOQLXabho4lRk7Ryzt9XRsMBEH5POqQV5DTcS ZdqatqgRkqyNC+4uR5MbcFuoPCyoX9O2hg0idEGYHWSwOIZVOQn0LcftjLzA8sm1N+yt ZYvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+I8g8xI0PLvgMDTAKTzT+byqeeeAJ48wgO3/LkZkDfc=; b=oBCwzvaII0gFHTkcyyBwvMbVKF6HPuChfid1JQcIbp5QGFB7YO3pHpaFDvMMo/eF10 WlmV5Pp5GlgjG3xDKhvxxabAiHlm5C8tOU/R7crn0whrOSXrZdkBIiPTTeMsyYAIvAhr n4FJbZ3wMrFXtpC9DjB3I/T9HAAfU4XAIb667CGDBnrqhQxM3ksbPBOLXdemGECicNZ5 oAjCy8Wj7EqGWTKXrZBmAb9UZkkoPzBoOo8xU9bQgAkcSYyox5P2XJcwmgW0V1O/KnCG sTSU4oSymYdexK0h6+hCNtmIqwmd3lQspuCvc2gDRAUyvUf3MAQlw4Ejy3q5zzMwk9uY PWKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=aKZ1lY0f; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com>); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs124-20020a632882000000b0054f78775084si4578304pgb.125.2023.06.13.11.13.24; Tue, 13 Jun 2023 11:13:37 -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=@arinc9.com header.s=zmail header.b=aKZ1lY0f; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com>); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238728AbjFMRcH (ORCPT + 99 others); Tue, 13 Jun 2023 13:32:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235168AbjFMRcD (ORCPT ); Tue, 13 Jun 2023 13:32:03 -0400 Received: from sender3-op-o18.zoho.com (sender3-op-o18.zoho.com [136.143.184.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B494A1BDB; Tue, 13 Jun 2023 10:31:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686677440; cv=none; d=zohomail.com; s=zohoarc; b=Y+EMAxMpiRCH413IBVJiA3UKJzsUnn7PworlHspTD0WWb+6QzFPGdlyPkgQgZ2/QsvKoVsawU9O7gDaAvFbxcLGcCFM1Y9XwwN+4MhMN4UtJWgjUB0K88Wk8CkYuNatDUOcuLQFiTRFS8k8p4eGQusMniXxikr4OTzI+GfQEGGY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686677440; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=+I8g8xI0PLvgMDTAKTzT+byqeeeAJ48wgO3/LkZkDfc=; b=Xe6lZ/wxp5SieLpuCdeLtUP37vqfHWb+wJU7rXiu06r99QPKr1lqplNldBBO60XDwJeHJ2vWY8E37cL3geFXgpIO/oPb/kMOEvn6xPSMnVFZP1FyQb4Yf86y27OJ1oz8bpaSWAfN2CQRwFPdW99W70xZ1hksEUWOoe59+kR2XdE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1686677440; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=+I8g8xI0PLvgMDTAKTzT+byqeeeAJ48wgO3/LkZkDfc=; b=aKZ1lY0f/90ohhn38wGIkGs00vNns+YU5emG6cCDfzzYMEYMBzDzlNSGijityrNs vRfFZ9mk1VtT3NFGIW2fCBu9cPeGJ4pJJA6m1C6Ku3NkeYz8hHkZVxeITplORwGd1Xj 9k+GYgSFN50Yji3uCeTMClVthkGXCJmjLOpM0gKE= Received: from [192.168.1.248] (178-147-169-233.haap.dm.cosmote.net [178.147.169.233]) by mx.zohomail.com with SMTPS id 1686677438530410.51951240935364; Tue, 13 Jun 2023 10:30:38 -0700 (PDT) Message-ID: Date: Tue, 13 Jun 2023 20:30:28 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net v2 2/7] net: dsa: mt7530: fix trapping frames with multiple CPU ports on MT7530 Content-Language: en-US To: Vladimir Oltean Cc: 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 References: <20230611081547.26747-1-arinc.unal@arinc9.com> <20230611081547.26747-2-arinc.unal@arinc9.com> <20230613150815.67uoz3cvvwgmhdp2@skbuf> <20230613171858.ybhtlwxqwp7gyrfs@skbuf> <20230613172402.grdpgago6in4jogq@skbuf> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20230613172402.grdpgago6in4jogq@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, 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 13.06.2023 20:24, Vladimir Oltean wrote: > On Tue, Jun 13, 2023 at 08:18:58PM +0300, Vladimir Oltean wrote: >> On Tue, Jun 13, 2023 at 08:14:35PM +0300, Arınç ÜNAL wrote: >>> Actually, having only "net: dsa: introduce preferred_default_local_cpu_port >>> and use on MT7530" backported is an enough solution for the current stable >>> kernels. >>> >>> When multiple CPU ports are defined on the devicetree, the CPU_PORT bits >>> will be set to port 6. The active CPU port will also be port 6. >>> >>> This would only become an issue with the changing the DSA conduit support. >>> But that's never going to happen as this patch will always be on the kernels >>> that support changing the DSA conduit. >> >> Aha, ok. I thought that device trees with CPU port 5 exclusively defined >> also exist in the wild. If not, and this patch fixes a theoretical only >> issue, then it is net-next material. > > On second thought, compatibility with future device trees is the reason > for this patch set, so that should equally be a reason for keeping this > patch in a "net" series. > > If I understand you correctly, port 5 should have worked since commit > c8b8a3c601f2 ("net: dsa: mt7530: permit port 5 to work without port 6 on > MT7621 SoC"), and it did, except for trapping, right? 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. 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. > > So how about settling on that as a more modest Fixes: tag, and > explaining clearly in the commit message what's affected? I don't see anything to change in the patch log except addressing Russell's comments. Arınç