drivers: clk: Update license for Intel N5X device
PATCH 1/1 drivers: clk: Update license for Intel N5X device
From: Teik Heng Chong <[email protected]>
All the source code of clk-mem-n5x.c and clk-n5x.c are from Intel, update the license to use both GPL2.0 and BSD-3 Clause because this copy of code may used for open source and internal project.
--- drivers/clk/altera/clk-mem-n5x.c | 4 ++-- drivers/clk/altera/clk-mem-n5x.h | 4 ++-- drivers/clk/altera/clk-n5x.c | 4 ++-- drivers/clk/altera/clk-n5x.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)
drivers/clk/altera/clk-mem-n5x.c +2 -2
@@ -1,6 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* -* Copyright (C) 2020-2021 Intel Corporation <www.intel.com> +* Copyright (C) 2020-2022 Intel Corporation <www.intel.com> */ #include <common.h>
drivers/clk/altera/clk-mem-n5x.h +2 -2
@@ -1,6 +1,6 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2020-2021 Intel Corporation <www.intel.com> +* Copyright (C) 2020-2022 Intel Corporation <www.intel.com> */ #ifndef _CLK_MEM_N5X_
drivers/clk/altera/clk-n5x.c +2 -2
@@ -1,6 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* -* Copyright (C) 2020-2021 Intel Corporation <www.intel.com> +* Copyright (C) 2020-2022 Intel Corporation <www.intel.com> */ #include <common.h>
drivers/clk/altera/clk-n5x.h +2 -2
@@ -1,6 +1,6 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2020-2021 Intel Corporation <www.intel.com> +* Copyright (C) 2020-2022 Intel Corporation <www.intel.com> */ #ifndef _CLK_N5X_
Signature · 1 line
2.26.2
Quoted 86 lines
-----Original Message-----
From: Chong, Teik Heng <[email protected]>
Sent: Wednesday, 29 June, 2022 1:52 PM
To: [email protected]
Cc: Lukasz <[email protected]>; Sean <[email protected]>; Simon <[email protected]>; Chaplin, Kris <[email protected]>; Hea, Kok Kiang <[email protected]>; Chee, Tien Fong <[email protected]>; Lim, Elly Siew Chin <[email protected]>; Kho, Sin Hui <[email protected]>; Lokanathan, Raaj <[email protected]>; Maniyam, Dinesh <[email protected]>; Ng, Boon Khai <[email protected]>; Yuslaimi, Alif Zakuan <[email protected]>; Chong, Teik Heng <[email protected]>
Subject: [Update license 1/1] drivers: clk: Update license for Intel N5X deviceFrom: Teik Heng Chong <[email protected]>
All the source code of
clk-mem-n5x.candclk-n5x.care from Intel, update the license to use both GPL2.0 and BSD-3 Clause because this copy of code may used for open source and internal project.Signed-off-by Teik Heng Chong <[email protected]>---
drivers/clk/altera/clk-mem-n5x.c| 4 ++--drivers/clk/altera/clk-mem-n5x.h
| 4 ++--drivers/clk/altera/clk-n5x.c | 4 ++-- drivers/clk/altera/clk-n5x.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)drivers/clk/altera/clk-mem- renamed from drivers/clk/altera/clk-mem-n5x.c +0
-0
n5x.c
indexca44998641..9bbe2cd0ca100644drivers/clk/altera/clk-mem-n5x.c +2
-2@@ -1,6 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* -* Copyright (C) 2020-2021 Intel Corporation <www.intel.com> +* Copyright (C) 2020-2022 Intel Corporation <www.intel.com> */ #include <common.h> drivers/clk/altera/clk-mem- renamed from drivers/clk/altera/clk-mem-n5x.h +0
-0
n5x.h
indexd000ae260c..7b687012e8100644drivers/clk/altera/clk-mem-n5x.h +2
-2@@ -1,6 +1,6 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2020-2021 Intel Corporation <www.intel.com> +* Copyright (C) 2020-2022 Intel Corporation <www.intel.com> */ #ifndef _CLK_MEM_N5X_drivers/clk/altera/clk-n5x.c index renamed from drivers/clk/altera/clk-n5x.c +0
-0
bdcbbaae91..3fa19e05c4100644drivers/clk/altera/clk-n5x.c +2
-2@@ -1,6 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* -* Copyright (C) 2020-2021 Intel Corporation <www.intel.com> +* Copyright (C) 2020-2022 Intel Corporation <www.intel.com> */ #include <common.h> drivers/clk/altera/clk-n5x.h index renamed from drivers/clk/altera/clk-n5x.h +0
-0
8c00e90f89..f6a9f0a794100644drivers/clk/altera/clk-n5x.h +2
-3@@ -1,6 +1,6 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* -* Copyright (C) 2020-2021 Intel Corporation <www.intel.com> +* Copyright (C) 2020-2022 Intel Corporation <www.intel.com> */ #ifndef _CLK_N5X_ --
Quoted 1 line
2.26.2
Hi,
Quoted 20 lines · On Wed, 29 Jun 2022 at 10:58, <[email protected]> wrote:
From: Teik Heng Chong <[email protected]>
All the source code of
clk-mem-n5x.candclk-n5x.care from Intel, update the license to use both GPL2.0 and BSD-3 Clause because this copy of code may used for open source and internal project.Signed-off-by Teik Heng Chong <[email protected]>--- drivers/clk/altera/clk-mem-n5x.c | 4 ++-- drivers/clk/altera/clk-mem-n5x.h | 4 ++-- drivers/clk/altera/clk-n5x.c | 4 ++-- drivers/clk/altera/clk-n5x.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)drivers/clk/altera/clk-mem-n5x.c +0
-0
drivers/clk/altera/clk-mem-n5x.c line 1
Quoted 2 lines
drivers/clk/altera/clk-mem-n5x.c +1
-1@@ -1,6 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
+Tom Rini
OR is not a license so I think you should drop that word.
Also U-Boot is GPL so seems strange to use a different license for these files. If it was wrong initially, perhaps add a 'Fixes' tag?
Regards,
Simon
Quoted 28 lines · Simon Glass
Hi,
Quoted 20 lines · On Wed, 29 Jun 2022 at 10:58, <[email protected]> wrote:
From: Teik Heng Chong <[email protected]>
All the source code of
clk-mem-n5x.candclk-n5x.care from Intel, update the license to use both GPL2.0 and BSD-3 Clause because this copy of code may used for open source and internal project.Signed-off-by Teik Heng Chong <[email protected]>--- drivers/clk/altera/clk-mem-n5x.c | 4 ++-- drivers/clk/altera/clk-mem-n5x.h | 4 ++-- drivers/clk/altera/clk-n5x.c | 4 ++-- drivers/clk/altera/clk-n5x.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)drivers/clk/altera/clk-mem-n5x.c +0
-0drivers/clk/altera/clk-mem-n5x.c line 1
Quoted 2 lines
drivers/clk/altera/clk-mem-n5x.c +1
-1@@ -1,6 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +Tom Rini
Quoted 1 line
OR is not a license so I think you should drop that word.
Looking at the linux kernel, it's normal to use "OR" for multiple licenses.
Signature · 1 line
Tom
Quoted 28 lines · Simon Glass
Hi,
Quoted 20 lines · On Wed, 29 Jun 2022 at 10:58, <[email protected]> wrote:
From: Teik Heng Chong <[email protected]>
All the source code of
clk-mem-n5x.candclk-n5x.care from Intel, update the license to use both GPL2.0 and BSD-3 Clause because this copy of code may used for open source and internal project.Signed-off-by Teik Heng Chong <[email protected]>--- drivers/clk/altera/clk-mem-n5x.c | 4 ++-- drivers/clk/altera/clk-mem-n5x.h | 4 ++-- drivers/clk/altera/clk-n5x.c | 4 ++-- drivers/clk/altera/clk-n5x.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)drivers/clk/altera/clk-mem-n5x.c +0
-0drivers/clk/altera/clk-mem-n5x.c line 1
Quoted 2 lines
drivers/clk/altera/clk-mem-n5x.c +1
-1@@ -1,6 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +Tom Rini
Quoted 1 line
OR is not a license so I think you should drop that word.
OR is valid in SPDX license identifier expressions
https://spdx.dev/spdx-specification-21-web-version/#h.jxpfx0ykyb60
Quoted 2 lines
Also U-Boot is GPL so seems strange to use a different license for these files. If it was wrong initially, perhaps add a 'Fixes' tag?
As used in U-Boot, this effectively is an AND (since this code will be linked with GPL code). As stated in the commit message, presumably this is to allow use in other (BSD-licensed) projects. Tom, do we generally allow this sort of thing? Is it OK for someone to come along later and change the license back (e.g. make it GPL-only again)?
I *would* like to see a RB or AB from Siew Chin Lim, since he is the original author of this code, but since it is copyright Intel I suppose it is fine to leave him out...
--Sean
Quoted 44 lines · Sean Anderson
Quoted 28 lines · Simon Glass
Hi,
Quoted 20 lines · On Wed, 29 Jun 2022 at 10:58, <[email protected]> wrote:
From: Teik Heng Chong <[email protected]>
All the source code of
clk-mem-n5x.candclk-n5x.care from Intel, update the license to use both GPL2.0 and BSD-3 Clause because this copy of code may used for open source and internal project.Signed-off-by Teik Heng Chong <[email protected]>--- drivers/clk/altera/clk-mem-n5x.c | 4 ++-- drivers/clk/altera/clk-mem-n5x.h | 4 ++-- drivers/clk/altera/clk-n5x.c | 4 ++-- drivers/clk/altera/clk-n5x.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)drivers/clk/altera/clk-mem-n5x.c +0
-0drivers/clk/altera/clk-mem-n5x.c line 1
Quoted 2 lines
drivers/clk/altera/clk-mem-n5x.c +1
-1@@ -1,6 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +Tom Rini
Quoted 1 line
OR is not a license so I think you should drop that word.
OR is valid in SPDX license identifier expressions
https://spdx.dev/spdx-specification-21-web-version/#h.jxpfx0ykyb60
Quoted 2 lines
Also U-Boot is GPL so seems strange to use a different license for these files. If it was wrong initially, perhaps add a 'Fixes' tag?
As used in U-Boot, this effectively is an AND (since this code will be linked with GPL code). As stated in the commit message, presumably this is to allow use in other (BSD-licensed) projects. Tom, do we generally allow this sort of thing? Is it OK for someone to come along later and change the license back (e.g. make it GPL-only again)?
Quoted 3 lines
I *would* like to see a RB or AB from Siew Chin Lim, since he is the original author of this code, but since it is copyright Intel I suppose it is fine to leave him out...
Note this already is in master. As it's all Intel commits, I figured that was good enough for being able to do this kind of change.
As to dual licensing of C code, I'm not in favor of this, overall, no. I understand why device trees do it. And most of the other in-tree examples here are places we import other code from and for good reason (I'm thinking the Android related headers).
In this specific example, I'm going to assume that the rigorous legal review I know Intel does in some cases would be done here as I'm not sure how exactly drivers/clk/altera/clk-n5x.c could be used as-is somewhere else, but I also see how about 90% of it could be shared with some other project and not reference U-Boot specifics.
Signature · 1 line
Tom