Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8755349rwb; Tue, 13 Dec 2022 10:01:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf6OpeptJveUE1JmofgrIuj7esC8Bp+hl5qnjs8/He2hFiHQf7dEXQwnXMwpGy6WuUtKOFQY X-Received: by 2002:a17:906:f856:b0:7c0:b0f9:e360 with SMTP id ks22-20020a170906f85600b007c0b0f9e360mr17532347ejb.16.1670954510459; Tue, 13 Dec 2022 10:01:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670954510; cv=none; d=google.com; s=arc-20160816; b=uwuD7nqrX2woxrBCqvtj6sEWPdGQ8DpzjE5eQpC4SGW4GkX3Y7WR6xM4HkJmvoapKJ oDGF3zoMr2+kUOLiA0PVxRsBO6CtFazjUTEUEIEjGQIQoA81ti5M14b1qaneCeaCWZVV hdXQ4k9mU/NAXgfHNfuhGAp+ofhVJX9lHwuAUuaqYg/lxERXqdaFA0dMyYGU80z5GedX RNcxXg4I7KrY+clUOOpoKbPq92Re130rHVv0MDAAq7EDwVpTP2buVvifKGIBfmc742nf aojulPIH+hmqCx/V/Im7v/pIRbAIr5heD1CgqhjkXbotu4jItSWJOiKhuX30OGvitksm 8uqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:message-id:date:subject:cc:to:from; bh=QCKGvn3Dd0dw0rtTNrNw0+vWjwXMsYNahqYa4V4ScuE=; b=JF716sJl7lPZADaHvMxLFTe3noKQ2sQGa9T57zQSPswyOMzVShW2DdOmrmO7AHwWTY 7XjR8bmq7zCvrRjATT0Is5dCCWU7mgDu+9kGQ0WOkdfW520Ls7xLLF0wJdoLWMMTMa+2 p+j9x3gL+UJMNSIvd+/3S/6VUYWynB6TIE1BeOuCeH/vcDfsaLNVrXVchUGoR/i4cYcF MFitjqSBv5u5pUgresNVrDQAtj5hIS8IjSxOpwsvqnx7pjOPaHA5CL9VVDSiTpKIQ+um gIJSiWiiIMOz4GeZr5w99jeLlwvSuX4qUYJll7AdcUJA6zbgnv8Jp0S9nDHpYYTTiF5h 0i1A== ARC-Authentication-Results: i=1; mx.google.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 ga34-20020a1709070c2200b007c14eabf6a5si2805082ejc.152.2022.12.13.10.01.33; Tue, 13 Dec 2022 10:01:50 -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; 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 S236393AbiLMRsT (ORCPT + 72 others); Tue, 13 Dec 2022 12:48:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236363AbiLMRsL (ORCPT ); Tue, 13 Dec 2022 12:48:11 -0500 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16DF462DD; Tue, 13 Dec 2022 09:48:08 -0800 (PST) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 5097E18839A2; Tue, 13 Dec 2022 17:48:06 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 439F02500015; Tue, 13 Dec 2022 17:48:06 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 3C8599EC0027; Tue, 13 Dec 2022 17:48:06 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 Received: from fujitsu.vestervang (2-104-116-184-cable.dk.customer.tdc.net [2.104.116.184]) by smtp.gigahost.dk (Postfix) with ESMTPSA id D160791201DF; Tue, 13 Dec 2022 17:48:05 +0000 (UTC) From: "Hans J. Schultz" To: davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, "Hans J. Schultz" , Andrew Lunn , Florian Fainelli , Vladimir Oltean , Eric Dumazet , Paolo Abeni , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 net-next 0/3] mv88e6xxx: Add MAB offload support Date: Tue, 13 Dec 2022 18:46:47 +0100 Message-Id: <20221213174650.670767-1-netdev@kapio-technology.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Organization: Westermo Network Technologies AB Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 This patchset adds MAB [1] offload support in mv88e6xxx. Patch #1: Correct default return value for mv88e6xxx_port_bridge_flags. Patch #2: Change chip lock handling in ATU interrupt handler. Patch #3: The MAB implementation for mv88e6xxx. LOG: V2: -FID reading patch already applied, so dropped here. [1] -Patch #2 here as separate patch instead of part of MAB implementation patch. -Check if fid is MV88E6XXX_FID_STANDALONE, and not if fid is zero, as that is the correct check. Do not report an error. [1] https://git.kernel.org/netdev/net-next/c/4bf24ad09bc0 Hans J. Schultz (3): net: dsa: mv88e6xxx: change default return of mv88e6xxx_port_bridge_flags net: dsa: mv88e6xxx: disable hold of chip lock for handling net: dsa: mv88e6xxx: mac-auth/MAB implementation drivers/net/dsa/mv88e6xxx/Makefile | 1 + drivers/net/dsa/mv88e6xxx/chip.c | 20 +++--- drivers/net/dsa/mv88e6xxx/chip.h | 15 +++++ drivers/net/dsa/mv88e6xxx/global1_atu.c | 22 +++++-- drivers/net/dsa/mv88e6xxx/switchdev.c | 83 +++++++++++++++++++++++++ drivers/net/dsa/mv88e6xxx/switchdev.h | 19 ++++++ 6 files changed, 147 insertions(+), 13 deletions(-) create mode 100644 drivers/net/dsa/mv88e6xxx/switchdev.c create mode 100644 drivers/net/dsa/mv88e6xxx/switchdev.h -- 2.34.1