Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753527AbdLHQXY (ORCPT ); Fri, 8 Dec 2017 11:23:24 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:58742 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752852AbdLHQXX (ORCPT ); Fri, 8 Dec 2017 11:23:23 -0500 Date: Fri, 8 Dec 2017 17:22:09 +0100 From: Karsten Merker To: Palmer Dabbelt Cc: patches@groups.riscv.org, gregkh@linuxfoundation.org, jslaby@suse.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tty: New RISC-V SBI console driver Message-ID: <20171208162209.52bkebfvw7mirbit@excalibur.cnev.de> References: <20171208001015.27735-1-palmer@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171208001015.27735-1-palmer@sifive.com> X-No-Archive: yes User-Agent: NeoMutt/20170113 (1.7.2) X-Provags-ID: V03:K0:NXqyZk7u3Qw4k7cQvQcpnBzFkGq+oZ9uO1+BvYhfjbBocsOAvll kHrtvW5Szcych49Ci9v0DadyJCkBKKoxRwKS5ueKOpbqS2ZAXAS47x+vjFiEaq0gXHMS+1X E+OLBCkI5biaddxFYXngslfc+b8QyrElKnve87afpw07meImDtvVQjixeBjqpuq8caJr9+m MuBd3EEfe+gj5Wjzt2TMQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:I+OoPsBYO30=:ooyAgsEoz7XJFUweDvCq/I epQEzEM6dgw+cmGOHdgC4NdLaU8MqsdcfTiAvsKccLd39Zc54NhmdmOA+i7QtvneQJmGU9IT/ wVd2du6VQ42fHaYdCSbVhoJZdo/Mgi5BirkkwKYxtgO60aa5LAop2JrSM4bXBIvI+mtWdP9S1 F02r5s514Vfqr3Fc47+eqRYdGd2Me5V6c1e8QmHuG3RO7yW3aJMSIpoHNoOwFsfB0otRh6Kqj jHU0+h8N59lzuntbJPkwnKB64IgWiGW3vxX1BfkIsYow2QW5mzHOxQmWxvIVi/S+CQJAeNVDl 6mdzyUdkCLukRGmP5h6MvsL6Nesh6s6EVbCJNv1N9epUVP8z86E5IdNoK+enSz3PPsvearyEt /fk2bAGaNrbB9gP6eNbAtnal3+5zqi+124MNWyP4AWYYhCnjklZ61XiB5qjr+qgs+WesTpCjN pr5MEGUHv7Njgc/N+FMnvUbxTxkW5f0jjITjsNYwbdk3ZEl/OuwkRmU/bSIhsztCbOEy5RvXj xGU8yNBuR3B769Ffy6lzwgQmlX4HX4EUOh78OBrECP5NgATi975IGkDi3i2BzKNbD9ZCQScUd XxIOw2ZW5iETDCHpEMX+WwDmn3Smg7HnLzSUGW/kjSRvGqGU46BtOmHWz1S0D/dCHgcH4Bciz wcEun2/5RfnAZ5QaBGBCck1jlfVZxvAGt7HDWPBhcRfF3IkRdf3+pyZ2Pmcw987m1n9ZKaMaM vafwfmFBg+EOk+zGx46ange3OH2yKbhPzDz5tQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2372 Lines: 61 On Thu, Dec 07, 2017 at 04:10:15PM -0800, Palmer Dabbelt wrote: > From: Palmer Dabbelt > > The RISC-V ISA defines a simple console that is availiable via SBI calls > on all systems. This patch adds a driver for this console interface > that can act as both a target for early printk and as the system > console. The core arch code already enables the early printk support > when CONFIG_HVC_RISCV_SBI is defined. > > There is one checkpatch.pl warning here: to check the MAINTAINERS file. > They're all matched by the "K: riscv" line. > > Signed-off-by: Palmer Dabbelt > diff --git a/arch/riscv/include/asm/hvc_riscv_sbi.h b/arch/riscv/include/asm/hvc_riscv_sbi.h > new file mode 100644 > index 000000000000..41723ed7bd97 > --- /dev/null > +++ b/arch/riscv/include/asm/hvc_riscv_sbi.h > @@ -0,0 +1,12 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > + > +#ifndef _ASM_RISCV_HVC_RISCV_SBI_H > +#define _ASM_RISCV_HVC_RISCV_SBI_H [...] > diff --git a/drivers/tty/hvc/hvc_riscv_sbi.c b/drivers/tty/hvc/hvc_riscv_sbi.c > new file mode 100644 > index 000000000000..83ef0dcc24e0 > --- /dev/null > +++ b/drivers/tty/hvc/hvc_riscv_sbi.c > @@ -0,0 +1,75 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > + > +#include [...] Hello Palmer, just a non-technical nitpick: the SPDX-License-Identifier states the license, but not the copyright holder(s). Could you please add an appropriate copyright line to each new file, i.e. something in the form of "copyright "? Although one can try to determine authorship from the git history, IMHO authorship should be noted explicitly in each file, as that information then sticks to the file whatever happens to it. Files might be reused outside the kernel (e.g. in u-boot, which reuses quite a bit of Linux driver code), and in those cases the connection between the file and its original git history gets lost. The same is true for example for the kernel releases in form of release tarballs which of course don't contain any git metadata. I therefore think it is good practice to always include the copyright/authorship information in each file. Regards, Karsten -- Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der Werbung sowie der Markt- oder Meinungsforschung.