Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2827585pxa; Tue, 25 Aug 2020 04:36:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX/C9TnPv1TwMkmlfrJ7BIAwdBSFQkCrYGx1cVf6U8S/CET8yLhpDDh1Npl4s2YowrG+WE X-Received: by 2002:aa7:d410:: with SMTP id z16mr9556952edq.287.1598355381554; Tue, 25 Aug 2020 04:36:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598355381; cv=none; d=google.com; s=arc-20160816; b=r+qjCUQw1sP6TwZawzqceB6HO7942tH2RR+7jbYsxOgpaF2Ewo8VEmN/BEbD2hkhIu NWLLKfPhnz7olrPjmDJrTEIC+poDE7GAfmS31uqsLIlJxWGx5FwSocxjPOUnhDEOQioq 3PfQGMY6C8ODQFi4gnR1nkoLdm216v8yUZ7L9A5lubZhkV+/fOpKmU46kfh2YI5bP8M3 rBaDXJqpqvrGVVkf84oud6lyIIKQPzyp9prrD4zC8UZH/ayK5nilAy7dh9fJPae2NY97 h0xss+dGjVYLkxMbXLUugWjLHFdFKwWYMYq205siFVl2nMHD3xKJJ3Tgadrvv+yZ7j1n Ae7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=K6yMw4fxgECqi7h+VtxSZroWPX674ju951RnsnI6iCo=; b=zujK/AP6T/P7pXdGQmzlPMX4YvGq+YH3E7Lti3pShVgMRgHbYFYtfBc3DEMSdarYA6 +S7cboeyI064H+veuBF49Effe+fpeH72WkvH4T0VeDzGaKdAFSxvNytPFpzmzGlJtaWc vER5kM4GxI2FPNF2lzKGhTJxjzjscwg2jXy/LJJ6e3kdfT1/FKc5AxYBcHTECCvZRDUu G69qfX37jYoLobI+TFD++PjcwHxNSMeGCeP4bOKLfBiKCwpVfYBjmLEfh4H+t2j79c/U ygNasCDf18YTw0lWBsiAYuWks6CABR340JdoLMdL1/1RM0oLvA+YPPjklFBR09VJ7p0P MB7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vjYUYXjE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk14si8800843edb.61.2020.08.25.04.35.58; Tue, 25 Aug 2020 04:36:21 -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 header.i=@kernel.org header.s=default header.b=vjYUYXjE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729967AbgHYLaj (ORCPT + 99 others); Tue, 25 Aug 2020 07:30:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:43858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729710AbgHYLai (ORCPT ); Tue, 25 Aug 2020 07:30:38 -0400 Received: from coco.lan (ip5f5ad5a4.dynamic.kabel-deutschland.de [95.90.213.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B53082068E; Tue, 25 Aug 2020 11:30:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598355037; bh=hS8MOXkGn7JYwFlDKqfpgI96hhlOO6z5RGuYqJxyWNk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vjYUYXjEaXVD3eAv3vZmxrvIuLgKkLKqMeS9kLfzQ69qD0P0HbZowGUT/hmAmwffm yhiHRysfyy1aN6khI/k+KqtD8yKFr0XivtzoBQzJmSmoZhDkN4wwHZH+fXlz9L07Pt MOWyOw/24QeMx5Wugndtf9E49WkpaoSdesV/9YFE= Date: Tue, 25 Aug 2020 13:30:25 +0200 From: Mauro Carvalho Chehab To: Dave Airlie Cc: Laurent Pinchart , 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: <20200825133025.13f047f0@coco.lan> In-Reply-To: References: <20200819152120.GA106437@ravnborg.org> <20200819153045.GA18469@pendragon.ideasonboard.com> <20200820090326.3f400a15@coco.lan> <20200820100205.GA5962@pendragon.ideasonboard.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: = =20 > > > Em Wed, 19 Aug 2020 12:52:06 -0700 John Stultz escreveu: =20 > > > > On Wed, Aug 19, 2020 at 8:31 AM Laurent Pinchart wrote: =20 > > > > > On Wed, Aug 19, 2020 at 05:21:20PM +0200, Sam Ravnborg wrote: =20 > > > > > > On Wed, Aug 19, 2020 at 01:45:28PM +0200, Mauro Carvalho Chehab= wrote: =20 > > > > > > > This patch series port the out-of-tree driver for Hikey 970 (= which > > > > > > > should also support Hikey 960) from the official 96boards tre= e: > > > > > > > > > > > > > > https://github.com/96boards-hikey/linux/tree/hikey970-v4.9 > > > > > > > > > > > > > > Based on his history, this driver seems to be originally writ= ten > > > > > > > for Kernel 4.4, and was later ported to Kernel 4.9. The origi= nal > > > > > > > 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 origi= nal > > > > > > > patch applied there. The remaining patches are incremental, > > > > > > > and port this driver to work with upstream Kernel. > > > > > > > =20 > > > > ... =20 > > > > > > > - Due to legal reasons, I need to preserve the authorship of > > > > > > > each one responsbile for each patch. So, I need to start fr= om > > > > > > > the original patch from Kernel 4.4; =20 > > > > ... =20 > > > > > > I do acknowledge you need to preserve history and all - > > > > > > but this patchset is not easy to review. =20 > > > > > > > > > > Why do we need to preserve history ? Adding relevant Signed-off-b= y 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. =20 > > > > > > > > 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. =20 > > > > > > 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 problemati= c, > > > 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. =20 > > > > 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. =20 >=20 > I'm inclined to agree with Laurent here. >=20 > 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. >=20 > 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=20 review the final code, without concerning about how the code reached there. =46rom 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. Thanks, Mauro