Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6421294rwb; Mon, 5 Dec 2022 12:06:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Gc/dOHvq4V/fZ4E/qNQ3d9LtMGt4OBoe3UrXrxuWulF+fK0UzZmHbUXWtQSmgxKai0KK0 X-Received: by 2002:aa7:c142:0:b0:46c:c7ea:42fc with SMTP id r2-20020aa7c142000000b0046cc7ea42fcmr4689728edp.58.1670270761904; Mon, 05 Dec 2022 12:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670270761; cv=none; d=google.com; s=arc-20160816; b=sOXf3HeeiMJhS+w2Smlzlkb8zVwfar2uf5TNUcHdVZOF/nc0EyHWbMD1h6Drsy/7Ta WOohmZVDc1Pj7UR7/asKwLS1TowNQkEiIWOMSULKhCrHIXLQfJdkthw3jPxvaGAagWN0 /77gqjH5Y3LPqI6g8hE31ScNKkbN2iODelcfJEd3kIQhb7q+gtkDyuN9HKsIZCUQ5RV1 8ZxzfJDdj3OBfPYPGJgtjqOm42UWoz+munEBJQNjQx4hCGBKLqMxIAXd5xmaSVeEzr4k dd4/uGBLfZ444YEjnMc1GTe4cGEWAyRZ5ivfI+XM3hz/Zx5vd12G9gfWQ2clDnf14lg/ qeFQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from; bh=jogchyXzs3z3ZUxwEKIbrPReG7aCrvJMf2pMDRE/iOc=; b=vHesENMgjGJdLi6w+peyD32Cp/2qd6EJi3RFe8DwyHQtLZbWqCGh85e29WY1fkQ1m3 P+WGlAEK2ytCNK6aJtBKknf/7j/vHpjvgTb4uYQd1ebdxY72ed/NaO/8CZAl/fbozlmW /elVnQNZSnPc07EQpdyc8bDk0FGRFwU19ueMelFpVLR/uZImWZo8bGRsAljaZfr/4Ip5 Ry5mFtHyF6GAG9xVEiCOJA86DN53fVtUl45aMhwZtmV64xN3SwExiAhq8PS7AEnFca2S JWULABFwMX0pv4KyhttuOWgufnlrYs2jdSkk2CjSnArRpGICkypLGUoq2dj2uARND4Og f6ZA== 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 e4-20020a17090658c400b0078e27f2ef4bsi12867045ejs.956.2022.12.05.12.05.35; Mon, 05 Dec 2022 12:06:01 -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 S233254AbiLETAd (ORCPT + 80 others); Mon, 5 Dec 2022 14:00:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230090AbiLETA1 (ORCPT ); Mon, 5 Dec 2022 14:00:27 -0500 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16299266A; Mon, 5 Dec 2022 11:00:21 -0800 (PST) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 13A861883898; Mon, 5 Dec 2022 19:00:19 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 0D4BD25002E1; Mon, 5 Dec 2022 19:00:19 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 025BC9EC0020; Mon, 5 Dec 2022 19:00:18 +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 AEF6591201E3; Mon, 5 Dec 2022 19:00:18 +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 net-next 2/3] net: dsa: mv88e6xxx: change default return of mv88e6xxx_port_bridge_flags Date: Mon, 5 Dec 2022 19:59:07 +0100 Message-Id: <20221205185908.217520-3-netdev@kapio-technology.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221205185908.217520-1-netdev@kapio-technology.com> References: <20221205185908.217520-1-netdev@kapio-technology.com> 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 The default return value -EOPNOTSUPP of mv88e6xxx_port_bridge_flags() came from the return value of the DSA method port_egress_floods() in commit 4f85901f0063 ("net: dsa: mv88e6xxx: add support for bridge flags"), but the DSA API was changed in commit a8b659e7ff75 ("net: dsa: act as passthrough for bridge port flags"), resulting in the return value -EOPNOTSUPP not being valid anymore. Signed-off-by: Hans J. Schultz --- drivers/net/dsa/mv88e6xxx/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index ccfa4751d3b7..66d7eae24ce0 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -6543,7 +6543,7 @@ static int mv88e6xxx_port_bridge_flags(struct dsa_switch *ds, int port, struct netlink_ext_ack *extack) { struct mv88e6xxx_chip *chip = ds->priv; - int err = -EOPNOTSUPP; + int err = 0; mv88e6xxx_reg_lock(chip); -- 2.34.1