Received: by 10.223.164.221 with SMTP id h29csp5254825wrb; Fri, 20 Oct 2017 09:06:14 -0700 (PDT) X-Received: by 10.99.54.202 with SMTP id d193mr2491175pga.343.1508515574659; Fri, 20 Oct 2017 09:06:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508515574; cv=none; d=google.com; s=arc-20160816; b=m9W86cMVzPOgtZFQ+n3urupsl2Rv7Vih9X+yZg0gnFUNtnqMNDI0Ibk4VoS2uR0rve dqPrhFqnxc8WtSzNPZ/tmxoCi5buufb7QmetnlVlvnzwpeWtEu/TO3qEFcOBJom6ITO6 XcPArqiUFN6tkbQO4ni38WH9aXdsZi7uiA2RHlLlxL+CXhIFak5h1dXY2Y3lPi8WTua1 SN7tHx+HI4eEHV5CmbS610QJQ3GCquf68HVm38qH23BfB3fHm+jj0gO9IG0dJcpqGc33 DraV4OO72AWnNuLZrsrA/g98xE4JkquI+bfrlZSWXQ8Wg5qXOZD8AghohHI/wQ2iZrzB f2ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=weCTx/5NaxlGh60FQ0ZajddZEIZ1EUrpxbXULySjp3Q=; b=CObjGNIAqg08knJhcy/wL0jLgappraql7pLwVIfK2/NVJoWw1jluL1WBSW47ANSPTc mq3VN8autAlUyDZXmQFEXFqclUN9agsP+IQOqDdlmiDksw7zX4zHqT6iwPzVQJaYizZX LIP8nSVvX/Ztc8A+PvGjuq5yxXbWEOfF0/mqEWS9u4ZC4Te+ERJBhN1wYBPcPo1vF+X7 FHFzQvkuf1lSVLFW5UwU7hQjD+PTn6sc9huA486fIVmdBS750VXuVaTnIMS2LE6cH8Su MyAntjODX2YUtu/GemlhoG7EIoGYWruzdbg7yZlf1yj3uQCLG9Ado+QwShpl5FC/Wc7J MvVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexb-com.20150623.gappssmtp.com header.s=20150623 header.b=F1P0pq3U; 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 c17si956954pfe.338.2017.10.20.09.05.59; Fri, 20 Oct 2017 09:06:14 -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; dkim=pass header.i=@nexb-com.20150623.gappssmtp.com header.s=20150623 header.b=F1P0pq3U; 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 S1752673AbdJTQEH (ORCPT + 99 others); Fri, 20 Oct 2017 12:04:07 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:55124 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752225AbdJTQEG (ORCPT ); Fri, 20 Oct 2017 12:04:06 -0400 Received: by mail-it0-f67.google.com with SMTP id 72so13955951itk.3 for ; Fri, 20 Oct 2017 09:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=weCTx/5NaxlGh60FQ0ZajddZEIZ1EUrpxbXULySjp3Q=; b=F1P0pq3UzcWryC5J/0ywWzF9qJDfIQbkdACj1+ChifrO89V1uksTKTLlhiRe5BMfiL cPMPwL155rveY/EE0lwmpFLJdJJvEiY79QQVv86eEz5HhKZjHxfomVa7aQJIKqKvMm48 WMo8JWM5d9cyvSOzAW1WqPeO5AscJaHdM+9DEg6e3RDI5mlUjTr9Zei04o9uZIft/cJv h6+29q7m/9f8hg2iV0Nf8shI9RAuTbxsvh7ZK1Yb01tzYuF+Ajq7VdsXBlJEyTprR5Pw +HfiA2LUSzP4GdhlSEK3bGLXk/Oe0rj4SYPBCaxZOHthoVbDoLWLgn+5X+xO+ati6wha NDPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=weCTx/5NaxlGh60FQ0ZajddZEIZ1EUrpxbXULySjp3Q=; b=ocjCKbtva29EuBbkqP+6wcew4akx4fdniFf5HkiL/0icNg/jJWQVbcibzzySZDcWZp LKgbPJe/zvuMXzup9bhL6UvyzY5h921EwYKDVpADvLNBURnXY7GBuhVMF/iWrDka/rC6 sUn50/uoYfpdJdQ6obftaToSAD7dsOtbEOZJBG1ofaPVtYapkSd5T2DtrFlaBiL/BURL Rcy7lMNhXt2o2wKvql+huiLhHgIo5Eqrn0Umo5GPgH8xI8ICBoSJheaq9uZXA4oDUjs9 Z4RRn1BPh4r2W4I7l64aGBN+1D254r5ODOXZjCP1wEzJBeC/JA6AXCpsXg/2CipPP4bu SVCA== X-Gm-Message-State: AMCzsaX8//Ois37fgUKuMyAVkijiIniODPtjsRUDGm+5lUlOEuyQqXDr T8rDdLoajS5oeLWmIN9kt4O3r6Y1GUnxKNdioKF3XA== X-Google-Smtp-Source: ABhQp+RqDfPKwz1sMgBEwJrWMSwkY9fGKXc2cm7m+FXUgR35PP5i3C2hPlV2uLBnJMArg0l8g+aOUkJgjH9J3S5q5iE= X-Received: by 10.36.91.76 with SMTP id g73mr3184308itb.3.1508515445370; Fri, 20 Oct 2017 09:04:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.133.197 with HTTP; Fri, 20 Oct 2017 09:03:24 -0700 (PDT) In-Reply-To: <20171020104528.GC3210@kroah.com> References: <1508382211-3154-1-git-send-email-vinod.koul@intel.com> <1508382211-3154-3-git-send-email-vinod.koul@intel.com> <20171020104528.GC3210@kroah.com> From: Philippe Ombredanne Date: Fri, 20 Oct 2017 18:03:24 +0200 Message-ID: Subject: Re: [PATCH 02/14] soundwire: Add SoundWire bus type To: Vinod Koul Cc: LKML , ALSA , Mark , Takashi , Pierre , Sanyog Kale , Shreyas NC , patches.audio@intel.com, alan@linux.intel.com, Charles Keepax , Sagar Dharia , srinivas.kandagatla@linaro.org, plai@codeaurora.org, Sudheer Papothi , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 20, 2017 at 12:45 PM, Greg Kroah-Hartman wrote: > On Thu, Oct 19, 2017 at 08:33:18AM +0530, Vinod Koul wrote: >> diff --git a/drivers/soundwire/bus_type.c b/drivers/soundwire/bus_type.c >> new file mode 100644 >> index 000000000000..a14d1de80afa >> --- /dev/null >> +++ b/drivers/soundwire/bus_type.c >> @@ -0,0 +1,229 @@ >> +/* >> + * This file is provided under a dual BSD/GPLv2 license. When using or >> + * redistributing this file, you may do so under either license. >> + * >> + * GPL LICENSE SUMMARY >> + * >> + * Copyright(c) 2015-17 Intel Corporation. >> + * >> + * This program is free software; you can redistribute it and/or modify >> + * it under the terms of version 2 of the GNU General Public License as >> + * published by the Free Software Foundation. >> + * >> + * This program is distributed in the hope that it will be useful, but >> + * WITHOUT ANY WARRANTY; without even the implied warranty of >> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU >> + * General Public License for more details. >> + * >> + * BSD LICENSE >> + * >> + * Copyright(c) 2015-17 Intel Corporation. >> + * >> + * 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 Intel Corporation nor the names of its >> + * contributors may be used to endorse or promote products derived >> + * from this software without specific prior written permission. >> + * >> + * 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 >> + * OWNER 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. > > Are you _sure_ that code that interacts with the driver core can have a > dual-license here? Have you explained to lawyers what you are doing > here (wrapping gpl-only symbols with non-gpl-only exports)? > > And why dual license something that will only ever work on Linux? > > And finally, put a real SPDX header up there so that people don't have > to parse that horrid amount of text to try to determine exactly what > that license is. Vinod: It is hard to parse for people ... but it is quite hard for tools to catch this too. This license notice is so peculiar and special that I had to make a special detection rule just for it [1] in my tool :| Please have mercy: could you not pick something simpler? [1] https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/rules/gpl-2.0_or_bsd-new33.RULE -- Cordially Philippe Ombredanne From 1581792702374815943@xxx Fri Oct 20 15:57:54 +0000 2017 X-GM-THRID: 1581653176013345351 X-Gmail-Labels: Inbox,Category Forums