Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9121968rwr; Thu, 11 May 2023 10:12:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ468dAa4Q37kvJ5fsFDvvq2cowwwnkNnobkW4VIVKqb0hiypMjoNPJxC9mYkxrVmb+//kPR X-Received: by 2002:a05:6a20:7349:b0:104:2d89:8f5d with SMTP id v9-20020a056a20734900b001042d898f5dmr1614172pzc.10.1683825156896; Thu, 11 May 2023 10:12:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683825156; cv=none; d=google.com; s=arc-20160816; b=Tz549eYZu1/BmpdPvgj7CVDCxWPfnzUD2C7696ERspUSSobhQjvfwI0rBg8X5Ncgbs kPqN94SY8wsWEp/R/bs987esmrMYgHXA2b6WRXKoMrJTceQaHayUi+ngRw7vE/rRTyF+ yaYlWNaiW3GD+lJbivUMRWpX0kGX8Y/HcxNgmoY1LIH423RDwgfOPTCoczI6kjSrN+uA k/bekE+exaHaZcwV/9ovlAjNN7sS7hr43slna7IXk5u9sIkTYaKou3aFtqJ/TDcb9T7l 0hbSXR4LsjOp7z2ZSZEkN6cT8u2xo7xmRbPfcu+pYsh/W3ScR/c6smdGOEccaijyF5Tc jusA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xDcai/HHLRGOgXUWow6VVexAi1qET6F32H65gRi8ZmI=; b=hyCI+g16w8PzFrt9x3RU9ULYSApymUYi6EMDIFsj/Rrs+K3GSvT9ZskJUofSfsLGxj 0x9uLwAaz+UUMMSV8ZMVldMZHTvmx0FotRQqDNJGmQXoLJVjTi+ng3O2tKkB7roAbpsJ h4vm20XXsrio7c70nPeCia2v2vPLNu3moa2SYVeDjxwWDHjEjNqRZXQVuUcmz0iXuZVH 2Dn7Cr7XSNkuQFTsVviaGxtMFZwYY0TJ4g3qOSgs6LgoA0yKldq4ZQIPKu+7cnwvYy7U Af2kW/gZub8jPs4Mdo5kNPZlIUsGqAokCZcAhT4BFMcFyEmNNOmgB+GL9F6iS6h2rpLe eHew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="mX9/fYWV"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b197-20020a6334ce000000b0052ca3209fc0si7575980pga.651.2023.05.11.10.12.22; Thu, 11 May 2023 10:12:36 -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=@bootlin.com header.s=gm1 header.b="mX9/fYWV"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238812AbjEKRCE (ORCPT + 99 others); Thu, 11 May 2023 13:02:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238774AbjEKRB5 (ORCPT ); Thu, 11 May 2023 13:01:57 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74E645247; Thu, 11 May 2023 10:01:50 -0700 (PDT) Received: (Authenticated sender: alexis.lothore@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id E59EE240012; Thu, 11 May 2023 17:01:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1683824509; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xDcai/HHLRGOgXUWow6VVexAi1qET6F32H65gRi8ZmI=; b=mX9/fYWVNQ5B9b3iFail4YJVJZDs63Rx1BOyexOB01aClpU5KQv8hSRsSRsyvo57inXtgZ FgU+hlWQBJn5AjjMQV1U5jivNFI88KViXmIhZs6DEUwGFffWL1IFLUI1n8nwKR0uKWlgni KYTrxYxA8ZQHkjnVDVw5j9vpnZs820BxWLJu1+vk6BSQHpBJtLk4bJnMiEe/xyjv+3gIys tq8KjAZ/cwltpri0ENDT8yVDMHJ6c21yskPoJbkM1Q0i46dYcGD36geb2IaONiGOYanE3s h5fWw21CKIX/TYXtwhRBT/SeoB82CZtRh3gTTlZ1tVXcoVYKvl9lixsOxiOBOg== From: alexis.lothore@bootlin.com To: andrew@lunn.ch, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, herve.codina@bootlin.com, miquel.raynal@bootlin.com, milan.stevanovic@se.com, jimmy.lalande@se.com, pascal.eberhard@se.com Subject: [PATCH net v2 1/3] net: dsa: rzn1-a5psw: enable management frames for CPU port Date: Thu, 11 May 2023 19:02:00 +0200 Message-Id: <20230511170202.742087-2-alexis.lothore@bootlin.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230511170202.742087-1-alexis.lothore@bootlin.com> References: <20230511170202.742087-1-alexis.lothore@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 From: Clément Léger Currently, management frame were discarded before reaching the CPU port due to a misconfiguration of the MGMT_CONFIG register. Enable them by setting the correct value in this register in order to correctly receive management frame and handle STP. Fixes: 888cdb892b61 ("net: dsa: rzn1-a5psw: add Renesas RZ/N1 advanced 5 port switch driver") Signed-off-by: Clément Léger Signed-off-by: Alexis Lothoré --- drivers/net/dsa/rzn1_a5psw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/rzn1_a5psw.c b/drivers/net/dsa/rzn1_a5psw.c index 919027cf2012..8a419e2ffe2a 100644 --- a/drivers/net/dsa/rzn1_a5psw.c +++ b/drivers/net/dsa/rzn1_a5psw.c @@ -673,7 +673,7 @@ static int a5psw_setup(struct dsa_switch *ds) } /* Configure management port */ - reg = A5PSW_CPU_PORT | A5PSW_MGMT_CFG_DISCARD; + reg = A5PSW_CPU_PORT | A5PSW_MGMT_CFG_ENABLE; a5psw_reg_writel(a5psw, A5PSW_MGMT_CFG, reg); /* Set pattern 0 to forward all frame to mgmt port */ -- 2.40.1