Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2830430pxa; Tue, 25 Aug 2020 04:41:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT+mVVP4vbT/UIUhbU1yTX1zSfaqXquKeSLhpyaRAS07YTz0wFMzxtuykYwJfm0GVA05NN X-Received: by 2002:a17:906:3e0a:: with SMTP id k10mr10613224eji.148.1598355685683; Tue, 25 Aug 2020 04:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598355685; cv=none; d=google.com; s=arc-20160816; b=i65tjDocRHP3jmzrw6moI5d55s0Hiw82cwz9fR1vT+KIPCJfcsk5a7veok+XgHD8EY +q3vnknZXv01LGgHNgoyf06ZO1Hl5TaGWYn/+U0qyON5n/tkiMD9WZgv3vG4uSM1uKNO lcJ6IysD2QYPi9uU0mCWVnZyIKOn57+sY9JD4lCpTAZsrkBGJudo83WFAEFjP0DQ14gQ 0BGFFHQ5/RtBeXl70jfty1wMvPyDUffvPHvPIUpzA5QeyD+hCDJA2EfjOJVwceccxuLI Tq2odcRg56szYrWjoDpqQLU49kJY8bTo9KyOunR6h8PtVAhfL9tW/nUa6/z5rX2LcMfE XJ6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=G32TckRcgWySmoCmr6FMNaLLdKRqiSK5eGByt06qLws=; b=iu1qzoe6YGp8RtiQauQl3zVO1aAmXWRmprX+LFOqdBUtAQrN2LfPvPkSAxWJ/VMjjM U8gdult45Y+YJz++kJqUHmFS0+fRfWcTVrI8MNv4QR/4qT9gd62wuEt5foaGRPjS7Rxy 9wEiUNF9FmFa2dAYmf2vCJt1tFfJr+0Z1RrDOmj+ch4tS5D+uFb5/htlamzofuZcFwi/ jomlU6EGV/UhjTclrj+o2mrShOI2dBgFGLPTjL2ULTqFTqozHyUwjXFNSg4cIKIDIzM0 fFkxxRfS9KjEOG1mJpfo1UPuEWmH1bWv6Cj4NkSqVQDCxAWSiyYS2VtR9W681hAqhzWV NxpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=V8LDzF9P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si8415264ejv.693.2020.08.25.04.41.02; Tue, 25 Aug 2020 04:41:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=V8LDzF9P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730079AbgHYLjn (ORCPT + 99 others); Tue, 25 Aug 2020 07:39:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728993AbgHYLi6 (ORCPT ); Tue, 25 Aug 2020 07:38:58 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6B3DC061755; Tue, 25 Aug 2020 04:38:57 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9193E29E; Tue, 25 Aug 2020 13:38:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1598355529; bh=oP1EjEnIIX7C41Y3YV+hfiXso0su8fK+nrUt1wKEF9Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V8LDzF9P8hldB1tNCUwNJ/7EKxSr62Gp1cWVZMi/+ekcPHd96IW+rWoq5QdRJlTqH dQ0DWxLi6Lzl6uAqGyxMgjAeEx/ru0IdXvNGSXFnSHtZYbvQMxELXOraGf4t8piTKA ZndhWp0G8aMHKXNn/qTcdYqI4v37quU1a+7p0eyo= Date: Tue, 25 Aug 2020 14:38:28 +0300 From: Laurent Pinchart To: Mauro Carvalho Chehab Cc: Dave Airlie , Neil Armstrong , David Airlie , Wanchun Zheng , linuxarm@huawei.com, dri-devel , Andrzej Hajda , Sam Ravnborg , driverdevel , Daniel Borkmann , John Fastabend , Xiubin Zhang , Wei Xu , Xinliang Liu , Xinwei Kong , Tomi Valkeinen , Bogdan Togorean , Jakub Kicinski , Laurentiu Palcu , linux-media , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Liwei Cai , Jesper Dangaard Brouer , Manivannan Sadhasivam , Chen Feng , Alexei Starovoitov , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Rob Herring , mauro.chehab@huawei.com, Rob Clark , linux-arm-kernel , Greg Kroah-Hartman , lkml , Liuyao An , Network Development , Rongrong Zou , BPF Mailing List , "David S. Miller" Subject: Re: [PATCH 00/49] DRM driver for Hikey 970 Message-ID: <20200825113815.GA6767@pendragon.ideasonboard.com> References: <20200819152120.GA106437@ravnborg.org> <20200819153045.GA18469@pendragon.ideasonboard.com> <20200820090326.3f400a15@coco.lan> <20200820100205.GA5962@pendragon.ideasonboard.com> <20200825133025.13f047f0@coco.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200825133025.13f047f0@coco.lan> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mauro, On Tue, Aug 25, 2020 at 01:30:25PM +0200, Mauro Carvalho Chehab wrote: > Em Tue, 25 Aug 2020 05:29:29 +1000 > Dave Airlie escreveu: > > > On Thu, 20 Aug 2020 at 20:02, Laurent Pinchart > > wrote: > > > > > > Hi Mauro, > > > > > > On Thu, Aug 20, 2020 at 09:03:26AM +0200, Mauro Carvalho Chehab wrote: > > > > Em Wed, 19 Aug 2020 12:52:06 -0700 John Stultz escreveu: > > > > > On Wed, Aug 19, 2020 at 8:31 AM Laurent Pinchart wrote: > > > > > > On Wed, Aug 19, 2020 at 05:21:20PM +0200, Sam Ravnborg wrote: > > > > > > > On Wed, Aug 19, 2020 at 01:45:28PM +0200, Mauro Carvalho Chehab wrote: > > > > > > > > This patch series port the out-of-tree driver for Hikey 970 (which > > > > > > > > should also support Hikey 960) from the official 96boards tree: > > > > > > > > > > > > > > > > https://github.com/96boards-hikey/linux/tree/hikey970-v4.9 > > > > > > > > > > > > > > > > Based on his history, this driver seems to be originally written > > > > > > > > for Kernel 4.4, and was later ported to Kernel 4.9. The original > > > > > > > > driver used to depend on ION (from Kernel 4.4) and had its own > > > > > > > > implementation for FB dev API. > > > > > > > > > > > > > > > > As I need to preserve the original history (with has patches from > > > > > > > > both HiSilicon and from Linaro), I'm starting from the original > > > > > > > > patch applied there. The remaining patches are incremental, > > > > > > > > and port this driver to work with upstream Kernel. > > > > > > > > > > > > > ... > > > > > > > > - Due to legal reasons, I need to preserve the authorship of > > > > > > > > each one responsbile for each patch. So, I need to start from > > > > > > > > the original patch from Kernel 4.4; > > > > > ... > > > > > > > I do acknowledge you need to preserve history and all - > > > > > > > but this patchset is not easy to review. > > > > > > > > > > > > Why do we need to preserve history ? Adding relevant Signed-off-by and > > > > > > Co-developed-by should be enough, shouldn't it ? Having a public branch > > > > > > that contains the history is useful if anyone is interested, but I don't > > > > > > think it's required in mainline. > > > > > > > > > > Yea. I concur with Laurent here. I'm not sure what legal reasoning you > > > > > have on this but preserving the "absolute" history here is actively > > > > > detrimental for review and understanding of the patch set. > > > > > > > > > > Preserving Authorship, Signed-off-by lines and adding Co-developed-by > > > > > lines should be sufficient to provide both atribution credit and DCO > > > > > history. > > > > > > > > I'm not convinced that, from legal standpoint, folding things would > > > > be enough. See, there are at least 3 legal systems involved here > > > > among the different patch authors: > > > > > > > > - civil law; > > > > - common law; > > > > - customary law + common law. > > > > > > > > Merging stuff altogether from different law systems can be problematic, > > > > and trying to discuss this with experienced IP property lawyers will > > > > for sure take a lot of time and efforts. I also bet that different > > > > lawyers will have different opinions, because laws are subject to > > > > interpretation. With that matter I'm not aware of any court rules > > > > with regards to folded patches. So, it sounds to me that folding > > > > patches is something that has yet to be proofed in courts around > > > > the globe. > > > > > > > > At least for US legal system, it sounds that the Country of > > > > origin of a patch is relevant, as they have a concept of > > > > "national technology" that can be subject to export regulations. > > > > > > > > From my side, I really prefer to play safe and stay out of any such > > > > legal discussions. > > > > > > Let's be serious for a moment. If you think there are legal issues in > > > taking GPL-v2.0-only patches and squashing them while retaining > > > authorship information through tags, the Linux kernel if *full* of that. > > > You also routinely modify patches that you commit to the media subsystem > > > to fix "small issues". > > > > > > The country of origin argument makes no sense either, the kernel code > > > base if full of code coming from pretty much all country on the planet. > > > > > > Keeping the patches separate make this hard to review. Please squash > > > them. > > > > I'm inclined to agree with Laurent here. > > > > Patches submitted as GPL-v2 with DCO lines and author names/companies > > should be fine to be squashed and rearranged, > > as long as the DCO and Authorship is kept somewhere in the new patch > > that is applied. > > > > Review is more important here. > > Sorry, but I can't agree that review is more important than to be able > to properly indicate copyrights in a valid way at the legal systems that > it would apply ;-) > > In any case, there's an easy way to make the code easy to review: > I can write the patches against staging (where it is OK to submit > preserving the history) and then add a final patch moving it out > of staging. > > You can then just review the last patch, as it will contain the > entire code on it. > > Another alternative, as I'm already doing with Sam, is for me to > submit the folded code as a reply to 00/xx. You can then just > review the final code, without concerning about how the code reached > there. > > From review point of the view, this will be the same as reviewing > a folded patch, but, from legal standpoint, the entire copyright > chain will be preserved. Let's stop with the legal FUD please. Squashing patches is done routinely in the kernel. If you have evidence this causes legal issues, please bring it up with the TAB or the LF to make this practice stop. Otherwise, please squash this series. -- Regards, Laurent Pinchart