diff mbox series

[Update,license,1/1] drivers: clk: Update license for Intel N5X device

Message ID 20220629055150.2084-1-teik.heng.chong@intel.com
State Accepted
Commit ef5ba2cef4a08b68caaa9215fcac142d3025bbf7
Delegated to: Simon Goldschmidt
Headers show
Series [Update,license,1/1] drivers: clk: Update license for Intel N5X device | expand

Commit Message

Chong, Teik Heng June 29, 2022, 5:51 a.m. UTC
From: Teik Heng Chong <teik.heng.chong@intel.com>

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.

Signed-off-by: Teik Heng Chong <teik.heng.chong@intel.com>
---
 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(-)

Comments

Chee, Tien Fong June 30, 2022, 11:56 a.m. UTC | #1
> -----Original Message-----
> From: Chong, Teik Heng <teik.heng.chong@intel.com>
> Sent: Wednesday, 29 June, 2022 1:52 PM
> To: u-boot@lists.denx.de
> Cc: Lukasz <lukma@denx.de>; Sean <seanga2@gmail.com>; Simon
> <simon.k.r.goldschmidt@gmail.com>; Chaplin, Kris <kris.chaplin@intel.com>;
> Hea, Kok Kiang <kok.kiang.hea@intel.com>; Chee, Tien Fong
> <tien.fong.chee@intel.com>; Lim, Elly Siew Chin
> <elly.siew.chin.lim@intel.com>; Kho, Sin Hui <sin.hui.kho@intel.com>;
> Lokanathan, Raaj <raaj.lokanathan@intel.com>; Maniyam, Dinesh
> <dinesh.maniyam@intel.com>; Ng, Boon Khai <boon.khai.ng@intel.com>;
> Yuslaimi, Alif Zakuan <alif.zakuan.yuslaimi@intel.com>; Chong, Teik Heng
> <teik.heng.chong@intel.com>
> Subject: [Update license 1/1] drivers: clk: Update license for Intel N5X device
> 
> From: Teik Heng Chong <teik.heng.chong@intel.com>
> 
> 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.
> 
> Signed-off-by: Teik Heng Chong <teik.heng.chong@intel.com>
> ---
>  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(-)
> 
> diff --git a/drivers/clk/altera/clk-mem-n5x.c b/drivers/clk/altera/clk-mem-
> n5x.c
> index ca44998641..9bbe2cd0ca 100644
> --- a/drivers/clk/altera/clk-mem-n5x.c
> +++ b/drivers/clk/altera/clk-mem-n5x.c
> @@ -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>
> diff --git a/drivers/clk/altera/clk-mem-n5x.h b/drivers/clk/altera/clk-mem-
> n5x.h
> index d000ae260c..7b687012e8 100644
> --- a/drivers/clk/altera/clk-mem-n5x.h
> +++ b/drivers/clk/altera/clk-mem-n5x.h
> @@ -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_
> diff --git a/drivers/clk/altera/clk-n5x.c b/drivers/clk/altera/clk-n5x.c index
> bdcbbaae91..3fa19e05c4 100644
> --- a/drivers/clk/altera/clk-n5x.c
> +++ b/drivers/clk/altera/clk-n5x.c
> @@ -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>
> diff --git a/drivers/clk/altera/clk-n5x.h b/drivers/clk/altera/clk-n5x.h index
> 8c00e90f89..f6a9f0a794 100644
> --- a/drivers/clk/altera/clk-n5x.h
> +++ b/drivers/clk/altera/clk-n5x.h
> @@ -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_
> --
> 2.26.2

Reviewed-by: Tien Fong Chee <tien.fong.chee@intel.com>
Simon Glass July 5, 2022, 9:47 a.m. UTC | #2
Hi,

On Wed, 29 Jun 2022 at 10:58, <teik.heng.chong@intel.com> wrote:
>
> From: Teik Heng Chong <teik.heng.chong@intel.com>
>
> 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.
>
> Signed-off-by: Teik Heng Chong <teik.heng.chong@intel.com>
> ---
>  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(-)
>
> diff --git a/drivers/clk/altera/clk-mem-n5x.c b/drivers/clk/altera/clk-mem-n5x.c
> index ca44998641..9bbe2cd0ca 100644
> --- a/drivers/clk/altera/clk-mem-n5x.c
> +++ b/drivers/clk/altera/clk-mem-n5x.c
> @@ -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
Tom Rini July 5, 2022, 1:44 p.m. UTC | #3
On Tue, Jul 05, 2022 at 03:47:20AM -0600, Simon Glass wrote:
> Hi,
> 
> On Wed, 29 Jun 2022 at 10:58, <teik.heng.chong@intel.com> wrote:
> >
> > From: Teik Heng Chong <teik.heng.chong@intel.com>
> >
> > 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.
> >
> > Signed-off-by: Teik Heng Chong <teik.heng.chong@intel.com>
> > ---
> >  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(-)
> >
> > diff --git a/drivers/clk/altera/clk-mem-n5x.c b/drivers/clk/altera/clk-mem-n5x.c
> > index ca44998641..9bbe2cd0ca 100644
> > --- a/drivers/clk/altera/clk-mem-n5x.c
> > +++ b/drivers/clk/altera/clk-mem-n5x.c
> > @@ -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.

Looking at the linux kernel, it's normal to use "OR" for multiple
licenses.
Sean Anderson July 5, 2022, 1:48 p.m. UTC | #4
On 7/5/22 5:47 AM, Simon Glass wrote:
> Hi,
> 
> On Wed, 29 Jun 2022 at 10:58, <teik.heng.chong@intel.com> wrote:
>>
>> From: Teik Heng Chong <teik.heng.chong@intel.com>
>>
>> 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.
>>
>> Signed-off-by: Teik Heng Chong <teik.heng.chong@intel.com>
>> ---
>>   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(-)
>>
>> diff --git a/drivers/clk/altera/clk-mem-n5x.c b/drivers/clk/altera/clk-mem-n5x.c
>> index ca44998641..9bbe2cd0ca 100644
>> --- a/drivers/clk/altera/clk-mem-n5x.c
>> +++ b/drivers/clk/altera/clk-mem-n5x.c
>> @@ -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.

OR is valid in SPDX license identifier expressions

https://spdx.dev/spdx-specification-21-web-version/#h.jxpfx0ykyb60

> 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
Tom Rini July 5, 2022, 1:55 p.m. UTC | #5
On Tue, Jul 05, 2022 at 09:48:45AM -0400, Sean Anderson wrote:
> On 7/5/22 5:47 AM, Simon Glass wrote:
> > Hi,
> > 
> > On Wed, 29 Jun 2022 at 10:58, <teik.heng.chong@intel.com> wrote:
> > > 
> > > From: Teik Heng Chong <teik.heng.chong@intel.com>
> > > 
> > > 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.
> > > 
> > > Signed-off-by: Teik Heng Chong <teik.heng.chong@intel.com>
> > > ---
> > >   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(-)
> > > 
> > > diff --git a/drivers/clk/altera/clk-mem-n5x.c b/drivers/clk/altera/clk-mem-n5x.c
> > > index ca44998641..9bbe2cd0ca 100644
> > > --- a/drivers/clk/altera/clk-mem-n5x.c
> > > +++ b/drivers/clk/altera/clk-mem-n5x.c
> > > @@ -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.
> 
> OR is valid in SPDX license identifier expressions
> 
> https://spdx.dev/spdx-specification-21-web-version/#h.jxpfx0ykyb60
> 
> > 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...

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.
diff mbox series

Patch

diff --git a/drivers/clk/altera/clk-mem-n5x.c b/drivers/clk/altera/clk-mem-n5x.c
index ca44998641..9bbe2cd0ca 100644
--- a/drivers/clk/altera/clk-mem-n5x.c
+++ b/drivers/clk/altera/clk-mem-n5x.c
@@ -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>
diff --git a/drivers/clk/altera/clk-mem-n5x.h b/drivers/clk/altera/clk-mem-n5x.h
index d000ae260c..7b687012e8 100644
--- a/drivers/clk/altera/clk-mem-n5x.h
+++ b/drivers/clk/altera/clk-mem-n5x.h
@@ -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_
diff --git a/drivers/clk/altera/clk-n5x.c b/drivers/clk/altera/clk-n5x.c
index bdcbbaae91..3fa19e05c4 100644
--- a/drivers/clk/altera/clk-n5x.c
+++ b/drivers/clk/altera/clk-n5x.c
@@ -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>
diff --git a/drivers/clk/altera/clk-n5x.h b/drivers/clk/altera/clk-n5x.h
index 8c00e90f89..f6a9f0a794 100644
--- a/drivers/clk/altera/clk-n5x.h
+++ b/drivers/clk/altera/clk-n5x.h
@@ -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_