From: Karsten Merker <merker@debian.org>
To: Palmer Dabbelt <palmer@dabbelt.com>
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
Date: Fri, 8 Dec 2017 17:22:09 +0100 [thread overview]
Message-ID: <20171208162209.52bkebfvw7mirbit@excalibur.cnev.de> (raw)
In-Reply-To: <20171208001015.27735-1-palmer@sifive.com>
On Thu, Dec 07, 2017 at 04:10:15PM -0800, Palmer Dabbelt wrote:
> From: Palmer Dabbelt <palmer@dabbelt.com>
>
> 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 <palmer@dabbelt.com>
> 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 <linux/console.h>
[...]
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 <year> <author>"?
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.
next prev parent reply other threads:[~2017-12-08 16:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-08 0:10 Palmer Dabbelt
2017-12-08 7:37 ` Greg KH
2017-12-08 19:46 ` Palmer Dabbelt
2017-12-08 16:22 ` Karsten Merker [this message]
2017-12-08 16:59 ` Philippe Ombredanne
-- strict thread matches above, loose matches on Subject: below --
2017-06-27 4:53 Palmer Dabbelt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171208162209.52bkebfvw7mirbit@excalibur.cnev.de \
--to=merker@debian.org \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=palmer@dabbelt.com \
--cc=patches@groups.riscv.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®