Received: by 10.213.65.68 with SMTP id h4csp950487imn; Wed, 14 Mar 2018 05:19:54 -0700 (PDT) X-Google-Smtp-Source: AG47ELsjEoxj2LjLvRRHS2K25ZPE6+34SkbxU6gZ/0FJpitQGGOM9VBj/85mbDqopeRdQObfCt0x X-Received: by 10.101.91.133 with SMTP id i5mr3515573pgr.20.1521029994001; Wed, 14 Mar 2018 05:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521029993; cv=none; d=google.com; s=arc-20160816; b=ZNoLYHtE5acvDUHXOR3QCxEWLE6gfPsSz8nqcObZMAIYIG8pqasrOCso8iaZEYWFY2 BZqPpeVZVPMSPe67a5703DGc6ikvjAWKFDtTniwHF/RBJm4FiSm4frg+vjT74+KDIEzP TG8bBLqC5oov39outaXbuA9bQC7Gem45Lj3D9XoT914LkwNQ+mI8MgHAIIsZpcHW37+L Odh869sETKNFJ3dCRnl8phUgRtZgxHnDAXR+AYhDGW6xn0tX0meX7oIhIqDnrLw0rkWx ibIANPcSYyC7F5k8DDqHq9UCGKmfDgY6d2KKVkX4BnyiNV9PDJcgyL+tiAzlZ+QW6wTk 02Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=wt1cdH5Pch8BafbuzFcTKTp1H/Tg5FxNLy87QYVRi88=; b=cSbCCQSQ7sNrhvZb/e+dwhayU8x5l2vMM3fgKt1rfyF/3eaRdYvDZ/RT5rTGteWdvo /7vT9Zku1c9Pp0qnU0hxTNyz2Ym4XQjgg4Pe9D0rOUoxUHAAiGcKssLln7mxlpEudFDH 6YgsPwXm8Oj778wkcglwzDbgqxm91jDbRr1v81Dk5oOSS8esa1NYBs9lyrcZANLGqEr2 gVpUBxnl6CG3KaaY2mF/6QlYaP1sqHhvtOn0MzecULTQt03CGJpj7aj9wAv7cKy2+ug1 AM7nS5KqBrSAW1LLXXe7PEq8K6DXoEd0tO6FYZmASbyO4uw5rZrz2hNceLp5IAuxqf4v /i+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5-v6si1965721ply.427.2018.03.14.05.19.39; Wed, 14 Mar 2018 05:19:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752047AbeCNMSC (ORCPT + 99 others); Wed, 14 Mar 2018 08:18:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36058 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751353AbeCNMSA (ORCPT ); Wed, 14 Mar 2018 08:18:00 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id AC96511BC; Wed, 14 Mar 2018 12:17:59 +0000 (UTC) Date: Wed, 14 Mar 2018 13:17:59 +0100 From: Greg KH To: Razvan Stefanescu Cc: devel@driverdev.osuosl.org, arnd@arndb.de, netdev@vger.kernel.org, alexandru.marginean@nxp.com, linux-kernel@vger.kernel.org, agraf@suse.de, stuyoder@gmail.com, ioana.ciornei@nxp.com, laurentiu.tudor@nxp.com Subject: Re: [PATCH v5 1/6] staging: fsl-dpaa2/ethsw: Add APIs for DPSW object Message-ID: <20180314121759.GA22695@kroah.com> References: <20180313135156.3322-1-razvan.stefanescu@nxp.com> <20180313135156.3322-2-razvan.stefanescu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180313135156.3322-2-razvan.stefanescu@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 08:51:51AM -0500, Razvan Stefanescu wrote: > Add the command build/parse APIs for operating on DPSW objects through > the DPAA2 Management Complex. > > Signed-off-by: Razvan Stefanescu > --- > Changelog: > v2: > - use u8 for en parameter of dpsw_if_set_flooding/broadcast() > v3: > - no changes > v4: > - adjust to moving MC-bus out of staging > - fix sparse warnings > v5: > - no changes > > drivers/staging/fsl-dpaa2/Kconfig | 8 + > drivers/staging/fsl-dpaa2/Makefile | 1 + > drivers/staging/fsl-dpaa2/ethsw/Makefile | 7 + > drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h | 358 +++++++++ > drivers/staging/fsl-dpaa2/ethsw/dpsw.c | 1116 ++++++++++++++++++++++++++++ > drivers/staging/fsl-dpaa2/ethsw/dpsw.h | 579 +++++++++++++++ > 6 files changed, 2069 insertions(+) > create mode 100644 drivers/staging/fsl-dpaa2/ethsw/Makefile > create mode 100644 drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h > create mode 100644 drivers/staging/fsl-dpaa2/ethsw/dpsw.c > create mode 100644 drivers/staging/fsl-dpaa2/ethsw/dpsw.h > > diff --git a/drivers/staging/fsl-dpaa2/Kconfig b/drivers/staging/fsl-dpaa2/Kconfig > index dfff675..8a508ef 100644 > --- a/drivers/staging/fsl-dpaa2/Kconfig > +++ b/drivers/staging/fsl-dpaa2/Kconfig > @@ -16,3 +16,11 @@ config FSL_DPAA2_ETH > ---help--- > Ethernet driver for Freescale DPAA2 SoCs, using the > Freescale MC bus driver > + > +config FSL_DPAA2_ETHSW > + tristate "Freescale DPAA2 Ethernet Switch" > + depends on FSL_DPAA2 > + depends on NET_SWITCHDEV > + ---help--- > + Driver for Freescale DPAA2 Ethernet Switch. Select > + BRIDGE to have support for bridge tools. > diff --git a/drivers/staging/fsl-dpaa2/Makefile b/drivers/staging/fsl-dpaa2/Makefile > index 0836ba8..6cfd76b 100644 > --- a/drivers/staging/fsl-dpaa2/Makefile > +++ b/drivers/staging/fsl-dpaa2/Makefile > @@ -3,3 +3,4 @@ > # > > obj-$(CONFIG_FSL_DPAA2_ETH) += ethernet/ > +obj-$(CONFIG_FSL_DPAA2_ETHSW) += ethsw/ > diff --git a/drivers/staging/fsl-dpaa2/ethsw/Makefile b/drivers/staging/fsl-dpaa2/ethsw/Makefile > new file mode 100644 > index 0000000..db137f7 > --- /dev/null > +++ b/drivers/staging/fsl-dpaa2/ethsw/Makefile > @@ -0,0 +1,7 @@ > +# > +# Makefile for the Freescale DPAA2 Ethernet Switch > +# > + > +obj-$(CONFIG_FSL_DPAA2_ETHSW) += dpaa2-ethsw.o > + > +dpaa2-ethsw-objs := dpsw.o > diff --git a/drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h b/drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h > new file mode 100644 > index 0000000..36edef6 > --- /dev/null > +++ b/drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h > @@ -0,0 +1,358 @@ > +/* Copyright 2013-2016 Freescale Semiconductor Inc. > + * Copyright 2017-2018 NXP > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions are met: > + * * Redistributions of source code must retain the above copyright > + * notice, this list of conditions and the following disclaimer. > + * * Redistributions in binary form must reproduce the above copyright > + * notice, this list of conditions and the following disclaimer in the > + * documentation and/or other materials provided with the distribution. > + * * Neither the name of the above-listed copyright holders nor the > + * names of any contributors may be used to endorse or promote products > + * derived from this software without specific prior written permission. > + * > + * > + * ALTERNATIVELY, this software may be distributed under the terms of the > + * GNU General Public License ("GPL") as published by the Free Software > + * Foundation, either version 2 of that License or (at your option) any > + * later version. > + * > + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" > + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE > + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR > + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF > + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS > + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN > + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) > + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE > + * POSSIBILITY OF SUCH DAMAGE. > + */ Can you resend this series and just use the correct SPDX identifiers for all of the new files, instead of all of this horrid boiler-plate code? That will save me time when I have to go delete all of this in the near future :) Also, why dual license it? Are you _SURE_ you want to do that, and are totally aware of all of the crazy issues surrounding it? Hint, it almost never means what you might think it does, and I have yet to know of anyone doing anything "real" with any dual-licensed Linux kernel code. Remember, BSD is not the license you want/need for GPL header files that are exposed to userspace... thanks, greg k-h