From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D04BC433EF for ; Mon, 13 Sep 2021 13:26:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 550706139F for ; Mon, 13 Sep 2021 13:26:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241697AbhIMN1W (ORCPT ); Mon, 13 Sep 2021 09:27:22 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:38174 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238675AbhIMNYs (ORCPT ); Mon, 13 Sep 2021 09:24:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=n0dItjjT5XWhIzVf5X3VVz9S0GyGpfJIrKxVaJFogkM=; b=G7yHa1lPBpB0jLb9Gp57umPchJ HV+9nAj2jNe9UhSFCddAmXJuJ1/xFSdtFahpTFxp1c5xnawrVvlMj52WyQxXc0zWmSyuNDurUiV3J sFvuwDGfkai0U7R+i86gbiTb2D5WKpht99PhdtkI5avtDmkC9wEHMU4CpdjVNrip+7Cw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mPlvU-006P5l-UG; Mon, 13 Sep 2021 15:23:12 +0200 Date: Mon, 13 Sep 2021 15:23:12 +0200 From: Andrew Lunn To: Vladimir Oltean Cc: Vladimir Oltean , netdev@vger.kernel.org, Florian Fainelli , Vivien Didelot , "David S. Miller" , Jakub Kicinski , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , Claudiu Manoil , Alexandre Belloni , Linus Walleij , George McCollister , Heiner Kallweit , Russell King , Oleksij Rempel , Michael Grzeschik , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Lino Sanfilippo Subject: Re: [RFC PATCH net 2/5] net: dsa: be compatible with masters which unregister on shutdown Message-ID: References: <20210912120932.993440-1-vladimir.oltean@nxp.com> <20210912120932.993440-3-vladimir.oltean@nxp.com> <20210912131837.4i6pzwgn573xutmo@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210912131837.4i6pzwgn573xutmo@skbuf> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I will fix this when I send the v2 patch, but I will not send that now, > as I would like to get some feedback on the approach first. It would of been nice to have less boilerplate code, but the basic idea seems O.K. Have you tested it with a D in DSA system? Andrew From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B19CC433F5 for ; Mon, 13 Sep 2021 13:26:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2D66561248 for ; Mon, 13 Sep 2021 13:26:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2D66561248 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lunn.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wD4cLd+6hBGVD5sYAQdSUUp7aNsBH0fKSRcOz/1bDCc=; b=CL+rbgPdunqDx9 N0E6rqGXpmX/war5OmYwCAv6t3csjAmAQ+BpTMThy8knm+a6kZ4f3auE3Wy1x6mCD3qVohX5+NHyb v6lHoyEmb13qgf9cepJYA1znUlM4GNHJEazKVBFCK5WDyI81sEYn6hcjXnWDYhsUBoGjnyvoRwKir 7tOvTZxLoJn/0qClw3K5oicQbEjNW3YBeauBehjCWUkVdJl9VQpAslMTFQFQfYrmY5EBauwtu7OBv Dnoa/kUHt+gs584ABJtYEpZPD3y4yWW7VUe4yREmZhKD7oZZbMBqg4YuCE27GsV/zKvLcbQu2MQt9 p1aTDekUbaxMl0rZrAMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPlyW-001oLZ-1Q; Mon, 13 Sep 2021 13:26:20 +0000 Received: from vps0.lunn.ch ([185.16.172.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPlvt-001n7U-2g; Mon, 13 Sep 2021 13:23:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=n0dItjjT5XWhIzVf5X3VVz9S0GyGpfJIrKxVaJFogkM=; b=G7yHa1lPBpB0jLb9Gp57umPchJ HV+9nAj2jNe9UhSFCddAmXJuJ1/xFSdtFahpTFxp1c5xnawrVvlMj52WyQxXc0zWmSyuNDurUiV3J sFvuwDGfkai0U7R+i86gbiTb2D5WKpht99PhdtkI5avtDmkC9wEHMU4CpdjVNrip+7Cw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mPlvU-006P5l-UG; Mon, 13 Sep 2021 15:23:12 +0200 Date: Mon, 13 Sep 2021 15:23:12 +0200 From: Andrew Lunn To: Vladimir Oltean Cc: Vladimir Oltean , netdev@vger.kernel.org, Florian Fainelli , Vivien Didelot , "David S. Miller" , Jakub Kicinski , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , Claudiu Manoil , Alexandre Belloni , Linus Walleij , George McCollister , Heiner Kallweit , Russell King , Oleksij Rempel , Michael Grzeschik , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Lino Sanfilippo Subject: Re: [RFC PATCH net 2/5] net: dsa: be compatible with masters which unregister on shutdown Message-ID: References: <20210912120932.993440-1-vladimir.oltean@nxp.com> <20210912120932.993440-3-vladimir.oltean@nxp.com> <20210912131837.4i6pzwgn573xutmo@skbuf> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210912131837.4i6pzwgn573xutmo@skbuf> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210913_062337_175555_28A08545 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org > I will fix this when I send the v2 patch, but I will not send that now, > as I would like to get some feedback on the approach first. It would of been nice to have less boilerplate code, but the basic idea seems O.K. Have you tested it with a D in DSA system? Andrew _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DAC5C433EF for ; Mon, 13 Sep 2021 13:27:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F39E9610FE for ; Mon, 13 Sep 2021 13:27:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F39E9610FE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lunn.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0wDAJgVnzGVAMrxkruKg5Dqm54nNfgaYGle3hIdA3aQ=; b=wekremVus3ys9Z 8a2nPbDoQggqJhegKHULS8Dj3o+52mUZsbMgDVRO6lh3jD3DilZCkAWbBUt4Aq1LkDIzofqrGzb8b H2ZUT/EjQXX3rNHvXjA02NWMO/RJ0LA9ClrC6lz6h1Gs2KlXmEzEo7Joao6ipWn24pgJaguvQD2sU eVcLeuGF1fSB/hQrgp1QtVU3+35t6yPe73I1Gsbs5M2f1l4NXID8/Aan/vwB73Nxx3F9UBYP92NVf Xl6tLC3YzUku9MCJDCS6BYgHBibON9jsRmV4zhuFJ2p2Ss2epZ61Ea31adEl3CsUUxhKn3vzZOWHS k3tXBpc81EyTzL1Rp4OQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPlxS-001noK-6A; Mon, 13 Sep 2021 13:25:15 +0000 Received: from vps0.lunn.ch ([185.16.172.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPlvt-001n7U-2g; Mon, 13 Sep 2021 13:23:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=n0dItjjT5XWhIzVf5X3VVz9S0GyGpfJIrKxVaJFogkM=; b=G7yHa1lPBpB0jLb9Gp57umPchJ HV+9nAj2jNe9UhSFCddAmXJuJ1/xFSdtFahpTFxp1c5xnawrVvlMj52WyQxXc0zWmSyuNDurUiV3J sFvuwDGfkai0U7R+i86gbiTb2D5WKpht99PhdtkI5avtDmkC9wEHMU4CpdjVNrip+7Cw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mPlvU-006P5l-UG; Mon, 13 Sep 2021 15:23:12 +0200 Date: Mon, 13 Sep 2021 15:23:12 +0200 From: Andrew Lunn To: Vladimir Oltean Cc: Vladimir Oltean , netdev@vger.kernel.org, Florian Fainelli , Vivien Didelot , "David S. Miller" , Jakub Kicinski , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , Claudiu Manoil , Alexandre Belloni , Linus Walleij , George McCollister , Heiner Kallweit , Russell King , Oleksij Rempel , Michael Grzeschik , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Lino Sanfilippo Subject: Re: [RFC PATCH net 2/5] net: dsa: be compatible with masters which unregister on shutdown Message-ID: References: <20210912120932.993440-1-vladimir.oltean@nxp.com> <20210912120932.993440-3-vladimir.oltean@nxp.com> <20210912131837.4i6pzwgn573xutmo@skbuf> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210912131837.4i6pzwgn573xutmo@skbuf> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210913_062337_175555_28A08545 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > I will fix this when I send the v2 patch, but I will not send that now, > as I would like to get some feedback on the approach first. It would of been nice to have less boilerplate code, but the basic idea seems O.K. Have you tested it with a D in DSA system? Andrew _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel