Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6729757rwb; Tue, 15 Nov 2022 02:57:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf67ipzbfFYta36WO9X8rxEmSsc6L3dwJGukK4mY0bn4EDtuFtI7e8+Tcq02kCDXAcLxf05Z X-Received: by 2002:a50:ef0e:0:b0:459:b29:d896 with SMTP id m14-20020a50ef0e000000b004590b29d896mr14297191eds.9.1668509828986; Tue, 15 Nov 2022 02:57:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668509828; cv=none; d=google.com; s=arc-20160816; b=YZCg/WZO7qmUn4BYm7DE7nVDN35mBZG6qg71bResb39ZI6eIli2BUSvnSl1Qs7g3Q3 UlN7czGM4jqtYpTMQ6/+KgEQxGpVA+R7VDvfd6CxuUyzfAkaF8FRr6St+8Bfyp9YV8mS RUdWQga3LK3BGlHXlDKTPEV9FFoORI/GnnclFz+HKu0NXWGkwwonMAxrvHdBl1zYdtky BvynACC8JhIKwnit9Yc7uvA1yrqZaPCVOGvrBAq3K2PuTsHgBWFZranhJJ+WpT+PUZPg r7Z/eTUBh6sMBvDD5wrsWnhdaXrJZN5RYZ6mXDsrZk/lZ41J9QyyjkG3HYKXl4iTdfKu dLxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=AdHebRZ2Gar1DZlgMNBb6Q4aL12/1BPhRfIpYa4me30=; b=He7QPjqrVFhdUigVRwUt/1b7lAt8TTBfJHx66GCesaAsWwXu9MvNyWIBJSYF7XkoOx hLl0JF3qQkUNN2G6cK8NXqtIdRd03UMSl7xIMpriGq9gjRWtq4fnVAHAhyPvfSwvVaPp jWYaUfIwV3aQP3RDmM7gnk1tLpNPcRFIkUcmJH/cf3JQgQKRHTyDYQhp78oFgRiJrzB1 3mk81r9tKldZOCca+jO1zi0ZtryGLzrWDRzprwY79U4YJlc1+CNQv0uw4Wh3IOQqi136 k/C2c5qGQ459HvS7KS5qJFUKzZQUT7AQWkflJ40czKxaCiMl2VsimhMMGKZwIxeuZ2s/ oM8Q== 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 k20-20020a170906159400b0073155abc1b8si9456818ejd.154.2022.11.15.02.56.46; Tue, 15 Nov 2022 02:57:08 -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 S232452AbiKOKgn (ORCPT + 89 others); Tue, 15 Nov 2022 05:36:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbiKOKgm (ORCPT ); Tue, 15 Nov 2022 05:36:42 -0500 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50CB2A197; Tue, 15 Nov 2022 02:36:40 -0800 (PST) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id ED03F1883A68; Tue, 15 Nov 2022 10:36:38 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id C94A325002DE; Tue, 15 Nov 2022 10:36:38 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 7A9F79EC0022; Tue, 15 Nov 2022 10:36:38 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Tue, 15 Nov 2022 11:36:38 +0100 From: netdev@kapio-technology.com To: Ido Schimmel Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , Vladimir Oltean , Eric Dumazet , Paolo Abeni , open list Subject: Re: [PATCH v8 net-next 2/2] net: dsa: mv88e6xxx: mac-auth/MAB implementation In-Reply-To: References: <20221112203748.68995-1-netdev@kapio-technology.com> <20221112203748.68995-3-netdev@kapio-technology.com> User-Agent: Gigahost Webmail Message-ID: <864c4ae8e549721ba1ac5cf6ef77db9d@kapio-technology.com> X-Sender: netdev@kapio-technology.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit 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 On 2022-11-15 10:58, Ido Schimmel wrote: > On Sat, Nov 12, 2022 at 09:37:48PM +0100, Hans J. Schultz wrote: >> diff --git a/drivers/net/dsa/mv88e6xxx/global1_atu.c >> b/drivers/net/dsa/mv88e6xxx/global1_atu.c >> index 8a874b6fc8e1..0a57f4e7dd46 100644 >> --- a/drivers/net/dsa/mv88e6xxx/global1_atu.c >> +++ b/drivers/net/dsa/mv88e6xxx/global1_atu.c >> @@ -12,6 +12,7 @@ >> >> #include "chip.h" >> #include "global1.h" >> +#include "switchdev.h" >> >> /* Offset 0x01: ATU FID Register */ >> >> @@ -426,6 +427,8 @@ static irqreturn_t >> mv88e6xxx_g1_atu_prob_irq_thread_fn(int irq, void *dev_id) >> if (err) >> goto out; >> >> + mv88e6xxx_reg_unlock(chip); > > Why? At minimum such a change needs to be explained in the commit > message and probably split to a separate preparatory patch, assuming > the > change is actually required. This was a change done long time ago related to that the violation handle function takes the NL lock, which could lead to a double-lock deadlock afair if the chip lock is taken throughout the handler.