Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp197741rwd; Wed, 14 Jun 2023 14:33:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5UWkMhgZKQKzEDi6kjAEWcWhn1gOEfpTi7QIEAUgKm6/OeLNwBLai3hsRSNqF9QZRXPXBI X-Received: by 2002:a05:6402:1487:b0:518:670a:7c57 with SMTP id e7-20020a056402148700b00518670a7c57mr5751714edv.14.1686778433140; Wed, 14 Jun 2023 14:33:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686778433; cv=pass; d=google.com; s=arc-20160816; b=s+RLEZx/VY9Cxm5hmT4J+JhsfhMTOG+41au1fxWGrOWvt7CDpuMSMhKRAGRqAIQKLc L+b+nHjrSiIOWEBz7gSWPAw8in03yq/4pKhOrcFA9H2R4M9OWrQJaXEwMZ8xuW3uB4cz ZydVpNFfzwOc70nRNlCB8Za0jJP+rVa/I/zEaTQj4Ap4BFEfanUfLjTqXvLzAQH6lL8j GaTBL5XvIgOoWp3RJvfhq+Ipgh1wRFS2itqqtxCBwiIs8RDJomn9nZLZbZZFpz955gGC 4t7oYHj1h424VKhLLwafjnQwxU2xe/dvo4LP0WNFV7AAl0A273Y8FYE8TjuJZ1/FFpCr 0E4Q== 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=QCE8raYlbiidyJWssP8dsm4pMUq5xPCJhSiYfiXhjM8=; b=RWwGwKOB+xoCkebsEHnS3RFDRB1z447BJS2EvqnzPMaOBUXk1feLMY0YmZz49cJBoV 7Xso5YR3K9cCGmTAYQPpHdfjqdqQUsZtskuxr9zoRPpdX0CndVPZMXrz4Q8C7crRbtmM k+WigjBynuedhiXTQcDPghch0i3Q0+emdZdAaUXd2cvhBZLrKkzM4uKAY7UOUzdzbN/P vEFwZfD3xw6I1eMsxUkmXvB7calaVUT33CFsiOgNOXodw+9h9SfPi4eVX5XVqvp82CNj y+8otgPSZbynJjkTihw4H4l2geXj7T+zWneNR707+VYS0cK9RAWThOGehn3cuI8h1Gzt rn4A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=j2XhT3ae; 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 q4-20020a056402032400b00514a14a94e5si9361814edw.175.2023.06.14.14.33.28; Wed, 14 Jun 2023 14:33:53 -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=j2XhT3ae; 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 S236272AbjFNVAP (ORCPT + 99 others); Wed, 14 Jun 2023 17:00:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230301AbjFNVAO (ORCPT ); Wed, 14 Jun 2023 17:00:14 -0400 Received: from sender4-op-o10.zoho.com (sender4-op-o10.zoho.com [136.143.188.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 380A019B5; Wed, 14 Jun 2023 14:00:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686776381; cv=none; d=zohomail.com; s=zohoarc; b=e+knpUe+Ng4xZa8FT/nRnJISWoAC5XHVTW6OGz6rksfE7XQe1mq3cdXXjftKcP1IxPWpAIcrJQFpDaUioPxND3eCytsSQFufZpQlZ8RkT3e43OgwMCENBpwOXR/ovcSw3LPeDHr1FyYKEsDhfAMFuS/6nU0a5pEs8X4Q4Mh4Krs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686776381; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=QCE8raYlbiidyJWssP8dsm4pMUq5xPCJhSiYfiXhjM8=; b=MMNb7KWrg8V6jnxJINYdVu5pjFQVL1YdNMpsGmKyscsHHZh3czbUqaSzmjWUhruljyKHYvNuUzj49IMwg6zU/BDNThw+BeKA2fUrR242YAnQPPZ4QapTtRusvw3aeB1jtER9/WrqYBN4R/QA9NoIZVuUn+bIwWvKXMdyQi1hwcc= 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=1686776381; 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=QCE8raYlbiidyJWssP8dsm4pMUq5xPCJhSiYfiXhjM8=; b=j2XhT3ae6El0gobD+RnJWAdi+TU1LAOhSgYd5YsbDvK8KK7fKCwzQoxv6KNfiStB BcUHFZSWMvSq7br7gc900l/28/rarj+7Ovrmtfz50v+wsD+9Ew3Yra0r+meb09MNR4b x2aL4kqIw1U9bOzS+C+gBATc+F3IaA2u7IMVYT6Y= Received: from [192.168.99.141] (178-147-169-233.haap.dm.cosmote.net [178.147.169.233]) by mx.zohomail.com with SMTPS id 168677637978093.19420675487902; Wed, 14 Jun 2023 13:59:39 -0700 (PDT) Message-ID: <581f410d-e94f-e980-f54b-b870017ba73c@arinc9.com> Date: Wed, 14 Jun 2023 23:59:33 +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 v4 3/7] net: dsa: mt7530: fix trapping frames on non-MT7621 SoC MT7530 switch 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: <20230612075945.16330-1-arinc.unal@arinc9.com> <20230612075945.16330-4-arinc.unal@arinc9.com> <20230614201336.lf5hqrp5nw7han4r@skbuf> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20230614201336.lf5hqrp5nw7han4r@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 14.06.2023 23:13, Vladimir Oltean wrote: > On Mon, Jun 12, 2023 at 10:59:41AM +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 >> --- >> 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 ef8879087932..2bde2fdb5fba 100644 >> --- a/drivers/net/dsa/mt7530.c >> +++ b/drivers/net/dsa/mt7530.c >> @@ -3073,7 +3073,7 @@ mt753x_master_state_change(struct dsa_switch *ds, >> * the numerically smallest CPU port which is affine to the DSA conduit >> * interface that is up. >> */ >> - if (priv->id != ID_MT7621) >> + if (priv->id != ID_MT7530 && priv->id != ID_MT7621) >> return; > > This patch and 2/7 should probably be reversed, since 2/7 is not going to net. This patch is still necessary. It'll just modify the other location instead of here. https://github.com/arinc9/linux/commit/4c8b983f7a95ba637799ccd1b700ee054b030729 Arınç