All of lore.kernel.org
 help / color / mirror / Atom feed
* [Update license 1/1] drivers: clk: Update license for Intel N5X device
@ 2022-06-29  5:51 teik.heng.chong
  2022-06-30 11:56 ` Chee, Tien Fong
  2022-07-05  9:47 ` Simon Glass
  0 siblings, 2 replies; 6+ messages in thread
From: teik.heng.chong @ 2022-06-29  5:51 UTC (permalink / raw)
  To: u-boot
  Cc: Lukasz, Sean, Simon, Kris, Kok Kiang, Tien Fong, Siew Chin,
	Sin Hui, Raaj, Dinesh, Boon Khai, Alif, Teik Heng Chong

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* RE: [Update license 1/1] drivers: clk: Update license for Intel N5X device
  2022-06-29  5:51 [Update license 1/1] drivers: clk: Update license for Intel N5X device teik.heng.chong
@ 2022-06-30 11:56 ` Chee, Tien Fong
  2022-07-05  9:47 ` Simon Glass
  1 sibling, 0 replies; 6+ messages in thread
From: Chee, Tien Fong @ 2022-06-30 11:56 UTC (permalink / raw)
  To: Chong, Teik Heng, u-boot
  Cc: Vasut, Marek, Lukasz, Sean, Simon, Chaplin, Kris, Hea, Kok Kiang,
	Lim, Elly Siew Chin, Kho, Sin Hui, Lokanathan, Raaj, Maniyam,
	Dinesh, Ng, Boon Khai, Yuslaimi, Alif Zakuan



> -----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>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Update license 1/1] drivers: clk: Update license for Intel N5X device
  2022-06-29  5:51 [Update license 1/1] drivers: clk: Update license for Intel N5X device teik.heng.chong
  2022-06-30 11:56 ` Chee, Tien Fong
@ 2022-07-05  9:47 ` Simon Glass
  2022-07-05 13:44   ` Tom Rini
  2022-07-05 13:48   ` Sean Anderson
  1 sibling, 2 replies; 6+ messages in thread
From: Simon Glass @ 2022-07-05  9:47 UTC (permalink / raw)
  To: teik.heng.chong, Tom Rini
  Cc: U-Boot Mailing List, Lukasz, Sean, Simon, Kris, Kok Kiang,
	Tien Fong, Siew Chin, Sin Hui, Raaj, Dinesh, Boon Khai, Alif

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Update license 1/1] drivers: clk: Update license for Intel N5X device
  2022-07-05  9:47 ` Simon Glass
@ 2022-07-05 13:44   ` Tom Rini
  2022-07-05 13:48   ` Sean Anderson
  1 sibling, 0 replies; 6+ messages in thread
From: Tom Rini @ 2022-07-05 13:44 UTC (permalink / raw)
  To: Simon Glass
  Cc: teik.heng.chong, U-Boot Mailing List, Lukasz, Sean, Simon, Kris,
	Kok Kiang, Tien Fong, Siew Chin, Sin Hui, Raaj, Dinesh,
	Boon Khai, Alif

[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]

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.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Update license 1/1] drivers: clk: Update license for Intel N5X device
  2022-07-05  9:47 ` Simon Glass
  2022-07-05 13:44   ` Tom Rini
@ 2022-07-05 13:48   ` Sean Anderson
  2022-07-05 13:55     ` Tom Rini
  1 sibling, 1 reply; 6+ messages in thread
From: Sean Anderson @ 2022-07-05 13:48 UTC (permalink / raw)
  To: Simon Glass, teik.heng.chong, Tom Rini
  Cc: U-Boot Mailing List, Lukasz, Simon, Kris, Kok Kiang, Tien Fong,
	Siew Chin, Sin Hui, Raaj, Dinesh, Boon Khai, Alif

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Update license 1/1] drivers: clk: Update license for Intel N5X device
  2022-07-05 13:48   ` Sean Anderson
@ 2022-07-05 13:55     ` Tom Rini
  0 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2022-07-05 13:55 UTC (permalink / raw)
  To: Sean Anderson
  Cc: Simon Glass, teik.heng.chong, U-Boot Mailing List, Lukasz, Simon,
	Kris, Kok Kiang, Tien Fong, Siew Chin, Sin Hui, Raaj, Dinesh,
	Boon Khai, Alif

[-- Attachment #1: Type: text/plain, Size: 2846 bytes --]

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.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-07-05 13:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29  5:51 [Update license 1/1] drivers: clk: Update license for Intel N5X device teik.heng.chong
2022-06-30 11:56 ` Chee, Tien Fong
2022-07-05  9:47 ` Simon Glass
2022-07-05 13:44   ` Tom Rini
2022-07-05 13:48   ` Sean Anderson
2022-07-05 13:55     ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.