Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3686862pxb; Fri, 4 Feb 2022 14:08:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxX9pItzKRipkBXbIajYnyG3EPwTv55mseMAYUpdXLhPfQs7PU1+2fD7Q+3A80dROSLFI1F X-Received: by 2002:a17:907:2be2:: with SMTP id gv34mr812412ejc.315.1644012538308; Fri, 04 Feb 2022 14:08:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644012538; cv=none; d=google.com; s=arc-20160816; b=riZJpq6yD7ShBwenyqsd5jHuLlL36qJ91JZq8Y7lwYX2foOoNJ7SEX6guZfcZuCJ4i OYEsFyMcLgCTr5Xkeb5F+GWyPxB3mpcFBcQvmiir324s1HsrsNBDkIk7pCusxWz0jGI2 obrXtlguPBxAsHRpkiOO4G/EfmVG8o/xHI/qaeiID89c1/HLodG0peyDkj+zuusHJKPo Tnoc4ENUUBsFBr+ZLh9PV4WwP5sXRVMW0SGkNBloF8xsyBsVClfzgZmuA4lCSxV0Lxi6 5oLI7febFp1iH549kX8E8W+NSAsS1zgd/NuXoLCvj1nzDj3LSIfYFDAjm48xMeL805yv Ed0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=A1Nq3YmZls5ouvXpAbeGWNDtW7r/8RDDggE479lzGzo=; b=w19NsU0g7CpUKMS4vQSd8pvOaKr1bNjwTldfec5BHDNymaOAemAE3QdVFDovoR+A42 8K7TD+y5XktQpu63Y71hPMjwJzowRlGmGAz4Tk/8ND4Waxm3zTiNdqvHn4nksWRY9YFp WSbkPFwHAdAVuY4OgCP/ZvyZwVNkgHK5tqNbrJabIE6uo/MsAU8D2OOR0r6u01o17Yru ZOoPgVo+4cB5i4aG6/aAu7rTKQw40oXnTuLHhrlcnZH5naSl2x4mZzYifwiZ85N7BL/t dsLwJUEobf/IW2hiXyD0nGG+YV0LOt0EgiV0YlkQLeFYE0KJsa4knxZIQ2WPlCIt4Hl4 uQyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nyIoXkt3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o23si2144251edi.319.2022.02.04.14.08.32; Fri, 04 Feb 2022 14:08:58 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nyIoXkt3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350220AbiBCL31 (ORCPT + 99 others); Thu, 3 Feb 2022 06:29:27 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:60342 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350214AbiBCL30 (ORCPT ); Thu, 3 Feb 2022 06:29:26 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1E7316160E; Thu, 3 Feb 2022 11:29:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8283AC340F7; Thu, 3 Feb 2022 11:29:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643887765; bh=8O9T7JmkE8AXDR3qQnEgCe/VXdmEMAvfBxnpPNQJxN0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nyIoXkt3yDlGi6V+mFTwFjWtCJ1qhppOXzJeGQ0zaUBdBqy707RByZCUu8nH2qc0T gskXco++UZSS/9OrUPwE+cCF/2wit5SGjWfHBx4Ko4IdAQNLgI4/RRjSxAlOp/4zpU 0vPrr0XBesTRIJYMH8U2Jmt0KQl91wu4lIvOWHoLRmI7pxxXqVwhJIMw6dY6WmF5Jg 8qgc5poMtTkUs03bSx6PoTs+64D6q4ciRddKvA7JLEUXe9c7kmoSyZmgm42mVyJ4V4 98NFsP/5M1uJGoHFugdSywIKYrfna0BWTwO6Gy5XFpaEH2cB1G+ch+YaGAho/rrfSd yxGuO7kui/uLA== Received: by mail-pf1-f171.google.com with SMTP id e6so1970380pfc.7; Thu, 03 Feb 2022 03:29:25 -0800 (PST) X-Gm-Message-State: AOAM532G5lJOQ0Hxl2BQCZHDh3lltUzrNaLsntHNXyQWIrKx+EpMQeAb IjOG0mka9ifYSwbrr15uJW8NCaGgIXJ5LSVRl7Y= X-Received: by 2002:a05:6a00:2343:: with SMTP id j3mr33414155pfj.7.1643887764872; Thu, 03 Feb 2022 03:29:24 -0800 (PST) MIME-Version: 1.0 References: <20220203082546.3099-1-15330273260@189.cn> <20220203082546.3099-2-15330273260@189.cn> <20220203110751.GE1978@kadam> In-Reply-To: <20220203110751.GE1978@kadam> From: Krzysztof Kozlowski Date: Thu, 3 Feb 2022 12:29:11 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 1/3] drm/lsdc: add drm driver for loongson display controller To: Dan Carpenter Cc: Sui Jingfeng <15330273260@189.cn>, Lucas Stach , Maarten Lankhorst , Maxime Ripard , Roland Scheidegger , Zack Rusin , Christian Gmeiner , David Airlie , Daniel Vetter , Rob Herring , Thomas Bogendoerfer , Andrey Zhizhikin , Sam Ravnborg , suijingfeng , linux-mips@vger.kernel.org, "linux-kernel@vger.kernel.org" , dri-devel@lists.freedesktop.org, Randy Dunlap Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Feb 2022 at 12:08, Dan Carpenter wrote: > > On Thu, Feb 03, 2022 at 09:53:35AM +0100, Krzysztof Kozlowski wrote: > > > diff --git a/drivers/gpu/drm/lsdc/lsdc_connector.c b/drivers/gpu/drm/lsdc/lsdc_connector.c > > > new file mode 100644 > > > index 000000000000..ae5fc0c90961 > > > --- /dev/null > > > +++ b/drivers/gpu/drm/lsdc/lsdc_connector.c > > > @@ -0,0 +1,443 @@ > > > +// SPDX-License-Identifier: GPL-2.0+ > > > +/* > > > + * Copyright 2020 Loongson Corporation > > > + * > > > + * Permission is hereby granted, free of charge, to any person obtaining a > > > + * copy of this software and associated documentation files (the > > > + * "Software"), to deal in the Software without restriction, including > > > + * without limitation the rights to use, copy, modify, merge, publish, > > > + * distribute, sub license, and/or sell copies of the Software, and to > > > + * permit persons to whom the Software is furnished to do so, subject to > > > + * the following conditions: > > > + * > > > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR > > > + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, > > > + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL > > > + * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, > > > + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR > > > + * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE > > > + * USE OR OTHER DEALINGS IN THE SOFTWARE. > > > + * > > > + * The above copyright notice and this permission notice (including the > > > + * next paragraph) shall be included in all copies or substantial portions > > > + * of the Software. > > > > This does not look like compliant with GPL-2.0. You cannot call a > > license GPL-2.0 and restrict it with some other provisions. > > That's the MIT license. It's not the GPL-2.0 license but it is > compliant. It's compliant when included as "OR" for example in SPDX tag. The current solution - SPDX and MIT license text - is not the proper way to describe this. Otherwise one could argue that both licenses apply at the same time and one has to fulfill both of them, which is ridiculous. There is a SPDX tag for the proper case - GPL or MIT. Best regards, Krzysztof