Do not add all User ports to the CPU by default. This will break Multi CPU when added a seperate patch. It will be overwritten by .port_enable and since we are forcing output to a port via the Special Tag this is not needed.
Message ID | 20230212215152.673221-1-richard@routerhints.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2066972wrn; Sun, 12 Feb 2023 14:09:54 -0800 (PST) X-Google-Smtp-Source: AK7set/8RQ7zwimEY7DG3iToDhjjxTtaRUH+Y4iFs0NqCuMPZCXxXTAh9S62jRt9RhxDeg6zfRE3 X-Received: by 2002:a17:906:1dc8:b0:878:8237:7abb with SMTP id v8-20020a1709061dc800b0087882377abbmr23363101ejh.35.1676239794495; Sun, 12 Feb 2023 14:09:54 -0800 (PST) Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v13-20020a17090610cd00b008867604f529si4375885ejv.82.2023.02.12.14.09.31; Sun, 12 Feb 2023 14:09:54 -0800 (PST) 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; arc=fail (signature failed); 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 S229772AbjBLVx7 (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Sun, 12 Feb 2023 16:53:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjBLVx5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 12 Feb 2023 16:53:57 -0500 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2059.outbound.protection.outlook.com [40.107.22.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA16EEFB0; Sun, 12 Feb 2023 13:53:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q4grdQEveFkbNjrsxm0kwNwJK3mb6yvOrFe99NZAHX+HTZ926+5r71PdlIP3ophDyq140Uj/qVC+qRvUV+IIFYPPU0NPWofV5WSvmM1KnzeGeOpptuAAaRgYSWqJdxIHDHxbgxD7cCZkehhKru8yIBYRy5fZw4E6povunApyMNSw5AEpFKa4LApcvC75n3+MgZat5fnV5U1wgeJmdg9eZjGhJw9qNhPHyAQ0/xZbmrCxMnHGMSg1KNJa/dzz1ZgMzb1wbsza07dFWIaLuoRt1ocBF9jXwWzS5OmizT5uItuNUAeSSPfaFMn6lCq9+0NqFgJASIq57oN4SaMRTpMJwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cwryBIZZqsBqQcbe4TUCcAlWGvQq30+0R5l4jWaSZJ8=; b=BJ14FcsefubdFm2tLMTu0UyuIa1J3bNAj9MIMJWpauloyIvi9xWq3yg4RuyPa7YP4y8MU4378LlZYnlCLlsyVnQD9DXBGXMnGAL7mLzTlOTTPrsPCggL9WGJn/nliIpF0xH5pYBrk/0pDqVNZRF2HcEe724jtFIsmRdL0Exn9XixVnYSHX2KlgPu5nlu81PqHYGmAE5s3Oc3ko7cZ1KJGvfYwwrIeH+dj5llYTLeYA9+TlO6kcFhGejhJcSEanDP/z1aDPEu83yt4LhBpzT3JMwiNw+TlXKTAhHBO+9vJkCaE37AWc12jrDwQsbBBadiZTC34Ff2ojP1+7h80xNUzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=routerhints.com; dmarc=pass action=none header.from=routerhints.com; dkim=pass header.d=routerhints.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=routerhints.com; Received: from VE1PR04MB7454.eurprd04.prod.outlook.com (2603:10a6:800:1a8::7) by VE1PR04MB7344.eurprd04.prod.outlook.com (2603:10a6:800:1a1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.24; Sun, 12 Feb 2023 21:53:52 +0000 Received: from VE1PR04MB7454.eurprd04.prod.outlook.com ([fe80::e4a3:a727:5246:a5cd]) by VE1PR04MB7454.eurprd04.prod.outlook.com ([fe80::e4a3:a727:5246:a5cd%9]) with mapi id 15.20.6086.023; Sun, 12 Feb 2023 21:53:52 +0000 From: Richard van Schagen <richard@routerhints.com> To: Sean Wang <sean.wang@mediatek.com>, Landen Chao <Landen.Chao@mediatek.com>, DENG Qingfang <dqfext@gmail.com>, Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Arinc Unal <arinc.unal@arinc9.com>, Frank Wunderlich <frank-w@public-files.de> Cc: Richard van Schagen <richard@routerhints.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] Do not add all User ports to the CPU by default. This will break Multi CPU when added a seperate patch. It will be overwritten by .port_enable and since we are forcing output to a port via the Special Tag this is not needed. Date: Sun, 12 Feb 2023 22:51:52 +0100 Message-Id: <20230212215152.673221-1-richard@routerhints.com> X-Mailer: git-send-email 2.30.2 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ClientProxiedBy: AS4PR09CA0017.eurprd09.prod.outlook.com (2603:10a6:20b:5d4::11) To VE1PR04MB7454.eurprd04.prod.outlook.com (2603:10a6:800:1a8::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB7454:EE_|VE1PR04MB7344:EE_ X-MS-Office365-Filtering-Correlation-Id: 5bf22f90-635c-484f-349a-08db0d43a12c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VpNCTB81g/4w2OjQcXlunB06MueTkdKdcCM8SJg5j1ZDfyk3vIlfFavhq1JQka0hfO8WMXjQd8lb4zik9nQUKoGOzECsbDRIRGS1L3JRtqsT1C5tZRDF9LwncTIX/hh6jvJucbOf75tkaQQAO5yxeXazMWkePAVb3WdOuO1xSFo1mwbIVD8/HmpUOZgmIFG1rXae9J3xiLHKXpNQNo9mMRGwdoMpyvJ7RGJB7RPCBq7tYP9MoEUVPe+B6RbIjFZNH/NNDI7MS4w6bDNQfTz7CXtVmb9b8MK1lLaYbv5/XR4hrhNdph0Bzj03Onr8aI+qFfO4w89l8/h2TBaS5i6uYHqLSsmahSQF+Nn/yLTrtoJuT8FCrlEWypV0rTNcnPiMBil38O5ff4oMVgBiPoxZapOgxsArAdZ1xprZ6PPev3K/XqQzfy3nz24JwSyTTmbxLTN3alAgXquQV6vaMYTR2oJjw7j6SAvOe4AcUGbvJb7jQ/4j0/JxCd3l8zOiejk42/tmQFaPmWyxLA7ZiHdTF080Qt7FZWOOW3q1xmJY18oqE1JIUwOcTqQJwi7i4lG7qcsxuwgBVtd9TVptZmvdiCxzu2eaNKgbtMXcsKQ/2nA0yllWMcL9Q+DHOz0ONy26ZUiYFQfnVrdBVHDIV76eZfsm57p9r+WRrls6Wm616IB+3c0wEESM1JEBdN1A2XVfUKwOEB2oVhi+h6ZyaN6X0tsIX5u+Hj+IKPGQtAtmwq33WB0EHFi/XwKkCAA4M/Ds X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB7454.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(396003)(366004)(376002)(346002)(136003)(39830400003)(451199018)(36756003)(110136005)(41300700001)(316002)(4326008)(8676002)(66946007)(66556008)(66476007)(921005)(38100700002)(86362001)(52116002)(1076003)(186003)(6506007)(6512007)(2906002)(5660300002)(8936002)(4744005)(2616005)(7416002)(478600001)(6486002)(83380400001)(219693005)(142923001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hJzidEyDyHmtQw5JlRgq04LPFoU2qL4/9UhgtmJq8wlRp46S+y78K+ThvUNmfov7zYkAcJxO5ykPwOvjuL4a36GDQM0BV1DugzWJtUIqaenUplK+vUEXzYK+C2+oSS8092A5hGPssVN/d7YOa0YvMCfRwwvOeUVz1UbF7ixCaRKQcL28MEUWmGxRZ+I0zRomkRElqgsMkyn5eL/zKV64O+WcyhftzJmVHO4wlg3LKu3lCDvAaAo4ZPGQGzMGylDmYBjidh9aNsfyHnBfnS3o6+Kiux9lx2Ar9D1NEngi0rG5tGZ+CrMIcW+mTAhUZdsrWo8aUAbatnNwk0G7BNRG3fuaKSGrZBgzKoJY3OAWN0Q4Xp1OMzUlJA9PIMb1xfapsXICuJ/JpYO5vjsaXkx25Cbc1+BcujX9bRXo3sTSZWpwwyV1FGpdOt35rLn+yi47IV2GdPZVhsA3i+3UyKBC32zbSZpC895R5zyxTIS8amjCbtJMD0aEttcUU6DTsHPgL9XvXdDP0uqGxW/S+Ugrv89Ni7k6ZsSfJw7Fmqq3f5Afo7fW+jpIEzRInQUWzDW0BcZVALr6yjs+KOx3nmxzlHxOlko0QZURD22oLjd3Q+QLOoBnk+ucasJzLtvco9hkpwQirAmj+cTnlifJ9cpenlBH6ERH9PtcngkCPpPwsW+wr6khp9jh9RUW8jiYPIrIkt7TtG3GsSER9pnvW2V0LH5o0QWlSQHKW9T1cGmW91ld+n4sHErZOYfVMjrJyhxinuRxtI/tinUezDxvi7pTE8diGPN9Qzh1bviDeSWanmd5aZVyCCYItay3SlGSEvEmqShY/mHCdsK7WQ2EAy0/LD6R4YH6UVNM73uvmB7C5rrH7qE58cArTrdWHl7Q0thLYydriAyvW7AZOcoyIFQKxbjrqob2tZgQOfRpFY6CPtljw5byGxWkfZmmrbFf8rib7SNADCI3mq9ZlAfHF9EDxbNOrvuAJRFlWLomRrRuPFG96OyxwbZZ+cRYkzogf3LTcyAlPcQw9ZRSO2uv5VG68bdIKoTC4nafA45hB5JYMAQwdTNM4CDJ+UUWWobG39SvaZbplmOwbfpYXF93OzFcHAHtEetLoXyp7m0VaWtjU2sIPbrKJQS55ZWxOADxU6deWy2t4Ps14gllHo41RmSnxKPfgMcCXKdb4MHQLx9Q9c9HTPV1maSar0lFXawDWUWV1kC5S5d/9+SKey8Rj10zlNyiZGKpfkL6Oks85JtEspHy2LsSsZAiSURDndtGaTCQLgXUUpbRCZeOvgpoktFYhTcSJT82QOkUVpINhUxanecAm4HqBZZK7esq2Kw3zYXLAEA0JhQ1aD2nCkCCqaaENckdHEuJTmmoAbiawvyh65gfEWf/yz5BGAlotMLmtKrlfJHx9AnydXWCtKhKbUqjKGv3RtGO30n2VpDDyOe2fQlbTPy8htZjDefpkeuHrmVVVOOylsxtJxMs2tGGdaPBzGfuJ03DLtY07nu5T3iF8ZUQqdxwvCMAwCmzXunqj5YIAv2J/d38zsV4fDoNl7UUJ+/qcxpIY+Dr8pz8gdjL6jgmU5XTn4ZRqvDwg2OjTnhAV441kT9NvIbz8wH37TQjAgeGmXT9Ox6NEjTR6z5d29hQ7F+7o427RQQWXHkWKjF2pQP13IX0cExmScuexQqQew== X-OriginatorOrg: routerhints.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5bf22f90-635c-484f-349a-08db0d43a12c X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB7454.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2023 21:53:52.2618 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 28838f2d-4c9a-459e-ada0-2a4216caa4fd X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: YWlnnpFkw/Emu6hJPqxCfL9mKcWiDVxrxWXWROCDof7q74dk6UW/Ti5xismHpImol67rg6+2eH1f0RCv/jc/wA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7344 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757664818780067317?= X-GMAIL-MSGID: =?utf-8?q?1757664818780067317?= |
Series |
Do not add all User ports to the CPU by default. This will break Multi CPU when added a seperate patch. It will be overwritten by .port_enable and since we are forcing output to a port via the Special Tag this is not needed.
|
|
Commit Message
Richard van Schagen
Feb. 12, 2023, 9:51 p.m. UTC
--- drivers/net/dsa/mt7530.c | 6 ------ 1 file changed, 6 deletions(-)
Comments
Hi Richard, If Documentation/process/submitting-patches.rst does not completely clarify, I also recommend running the "git log" command and studying some of the formatting differences between this patch and any of the patches that have been accepted.
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index f456541a68bc..f59f706d176e 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -1019,12 +1019,6 @@ mt753x_cpu_port_enable(struct dsa_switch *ds, int port) if (priv->id == ID_MT7621) mt7530_rmw(priv, MT7530_MFC, CPU_MASK, CPU_EN | CPU_PORT(port)); - /* CPU port gets connected to all user ports of - * the switch. - */ - mt7530_write(priv, MT7530_PCR_P(port), - PCR_MATRIX(dsa_user_ports(priv->ds))); - /* Set to fallback mode for independent VLAN learning */ mt7530_rmw(priv, MT7530_PCR_P(port), PCR_PORT_VLAN_MASK, MT7530_PORT_FALLBACK_MODE);