linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 00/12] cros_ec: Match licenses and switch to SPDX identifier.
@ 2018-06-06 15:08 Enric Balletbo i Serra
  2018-06-06 15:08 ` [PATCH v3 09/12] Input: cros_ec_keyb - Make license text and module license match Enric Balletbo i Serra
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Enric Balletbo i Serra @ 2018-06-06 15:08 UTC (permalink / raw)
  To: linux-kernel
  Cc: Gwendal Grignou, kernel, Dmitry Torokhov, Tony Luck,
	Alessandro Zummo, Paolo Cretaro, linux-iio, Alexandre Belloni,
	linux-i2c, Olof Johansson, linux-rtc, Anton Vorontsov,
	Chanwoo Choi, Benson Leung, linux-input, Lars-Peter Clausen,
	Jonathan Cameron, Peter Meerwald-Stadler, MyungJoo Ham, Lee Jones,
	Hartmut Knaack, Colin

Dear all,

This patchset is just to adopt the SPDX license identifier for all
ChromeOS Embedded Controller related drivers. The patches touches
different subsystems but every patch can be picked from their respective
maintainer independently.

This third version takes the license note as the valid license (I did
the contrary in the second version) so apart from add the SPDX tags it
also introduces new patches to match the license.

Best regards,
    Enric

Changes in v3:
- Add new patches to match license text with MODULE_LICENSE (Dmitry)
- If there is a conflict between the license notice and MODULE_LICENSE
  go by license notice not MODULE_LICENSE. (Dmitry)
- Reintroduced again the patch for the rtc-cros-ec driver as license
  should be GPL v2-only.
- Removed '[PATCH 7/9] pwm: cros-ec: Switch to SPDX identifier.' as
  maintainer told me that I don't need to resend.

Changes in v2:
- Removed '[PATCH 5/9] rtc: cros-ec: Switch to SPDX identifier' from
  series as it was applied.
- s/Chrome OS/ChromeOS/
- [1/9] Fixed wrong copyright year.
- [6/9] Do not remove last paragraph.
- [8/9] Fixed wrong copyright year.

Enric Balletbo i Serra (12):
  platform/chrome: Make license text and module license match.
  platform/chrome: Switch to SPDX identifier.
  mfd: cros_ec: Make license text and module license match.
  mfd: cros_ec: Switch to SPDX identifier.
  rtc: cros-ec: Make license text and module license match.
  rtc: cros-ec: Switch to SPDX identifier.
  extcon: usbc-cros-ec: Make license text and module license match.
  extcon: usbc-cros-ec: Switch to SPDX identifier.
  Input: cros_ec_keyb - Make license text and module license match.
  Input: cros_ec_keyb - Switch to SPDX identifier.
  iio: cros_ec: Switch to SPDX identifier.
  i2c: i2c-cros-ec-tunnel: Switch to SPDX identifier.

 drivers/extcon/extcon-usbc-cros-ec.c          | 22 ++++--------
 drivers/i2c/busses/i2c-cros-ec-tunnel.c       | 14 +++-----
 drivers/iio/accel/cros_ec_accel_legacy.c      | 27 +++++---------
 .../common/cros_ec_sensors/cros_ec_sensors.c  | 24 ++++---------
 .../cros_ec_sensors/cros_ec_sensors_core.c    | 18 +++-------
 .../cros_ec_sensors/cros_ec_sensors_core.h    | 12 ++-----
 drivers/iio/light/cros_ec_light_prox.c        | 18 +++-------
 drivers/iio/pressure/cros_ec_baro.c           | 18 +++-------
 drivers/input/keyboard/cros_ec_keyb.c         | 36 +++++++------------
 drivers/mfd/cros_ec.c                         | 28 +++++----------
 drivers/mfd/cros_ec_dev.c                     | 23 +++---------
 drivers/mfd/cros_ec_dev.h                     | 16 ++-------
 drivers/mfd/cros_ec_i2c.c                     | 20 +++--------
 drivers/mfd/cros_ec_spi.c                     | 18 +++-------
 drivers/platform/chrome/chromeos_pstore.c     | 15 +++-----
 drivers/platform/chrome/cros_ec_debugfs.c     | 22 +++---------
 drivers/platform/chrome/cros_ec_lightbar.c    | 22 +++---------
 drivers/platform/chrome/cros_ec_lpc.c         | 36 +++++++------------
 drivers/platform/chrome/cros_ec_lpc_mec.c     | 34 +++++++-----------
 drivers/platform/chrome/cros_ec_lpc_reg.c     | 34 +++++++-----------
 drivers/platform/chrome/cros_ec_proto.c       | 19 +++-------
 drivers/platform/chrome/cros_ec_sysfs.c       | 22 +++---------
 drivers/platform/chrome/cros_ec_vbc.c         | 24 +++----------
 .../platform/chrome/cros_kbd_led_backlight.c  | 19 +++-------
 drivers/rtc/rtc-cros-ec.c                     | 23 ++++--------
 include/linux/mfd/cros_ec.h                   | 10 +-----
 include/linux/mfd/cros_ec_commands.h          | 10 +-----
 include/linux/mfd/cros_ec_lpc_mec.h           | 14 ++------
 include/linux/mfd/cros_ec_lpc_reg.h           | 14 ++------
 29 files changed, 159 insertions(+), 453 deletions(-)

-- 
2.17.1

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

* [PATCH v3 09/12] Input: cros_ec_keyb - Make license text and module license match.
  2018-06-06 15:08 [PATCH v3 00/12] cros_ec: Match licenses and switch to SPDX identifier Enric Balletbo i Serra
@ 2018-06-06 15:08 ` Enric Balletbo i Serra
  2018-06-12 23:30   ` Dmitry Torokhov
  2018-06-06 15:08 ` [PATCH v3 10/12] Input: cros_ec_keyb - Switch to SPDX identifier Enric Balletbo i Serra
  2018-06-06 15:42 ` [PATCH v3 00/12] cros_ec: Match licenses and switch " Joe Perches
  2 siblings, 1 reply; 7+ messages in thread
From: Enric Balletbo i Serra @ 2018-06-06 15:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: Gwendal Grignou, kernel, Dmitry Torokhov, linux-input

The license text is specifying "GPLv2" but the MODULE_LICENSE is set to
GPL which means GNU Public License v2 or later. When MODULE_LICENSE and
boiler plate does not match, go for boiler plate license.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---

Changes in v3: None
Changes in v2: None

 drivers/input/keyboard/cros_ec_keyb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/drivers/input/keyboard/cros_ec_keyb.c
index 79eb29550c34..9dd8c146699f 100644
--- a/drivers/input/keyboard/cros_ec_keyb.c
+++ b/drivers/input/keyboard/cros_ec_keyb.c
@@ -674,6 +674,6 @@ static struct platform_driver cros_ec_keyb_driver = {
 
 module_platform_driver(cros_ec_keyb_driver);
 
-MODULE_LICENSE("GPL");
+MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("ChromeOS EC keyboard driver");
 MODULE_ALIAS("platform:cros-ec-keyb");
-- 
2.17.1

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

* [PATCH v3 10/12] Input: cros_ec_keyb - Switch to SPDX identifier.
  2018-06-06 15:08 [PATCH v3 00/12] cros_ec: Match licenses and switch to SPDX identifier Enric Balletbo i Serra
  2018-06-06 15:08 ` [PATCH v3 09/12] Input: cros_ec_keyb - Make license text and module license match Enric Balletbo i Serra
@ 2018-06-06 15:08 ` Enric Balletbo i Serra
  2018-06-12 23:30   ` Dmitry Torokhov
  2018-06-06 15:42 ` [PATCH v3 00/12] cros_ec: Match licenses and switch " Joe Perches
  2 siblings, 1 reply; 7+ messages in thread
From: Enric Balletbo i Serra @ 2018-06-06 15:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: Gwendal Grignou, kernel, Dmitry Torokhov, linux-input

Adopt the SPDX license identifier headers to ease license compliance
management.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---

Changes in v3: None
Changes in v2: None

 drivers/input/keyboard/cros_ec_keyb.c | 34 ++++++++++-----------------
 1 file changed, 12 insertions(+), 22 deletions(-)

diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/drivers/input/keyboard/cros_ec_keyb.c
index 9dd8c146699f..dd1b356d0004 100644
--- a/drivers/input/keyboard/cros_ec_keyb.c
+++ b/drivers/input/keyboard/cros_ec_keyb.c
@@ -1,25 +1,15 @@
-/*
- * ChromeOS EC keyboard driver
- *
- * Copyright (C) 2012 Google, Inc
- *
- * This software is licensed under the terms of the GNU General Public
- * License version 2, as published by the Free Software Foundation, and
- * may be copied, distributed, and modified under those terms.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * This driver uses the Chrome OS EC byte-level message-based protocol for
- * communicating the keyboard state (which keys are pressed) from a keyboard EC
- * to the AP over some bus (such as i2c, lpc, spi).  The EC does debouncing,
- * but everything else (including deghosting) is done here.  The main
- * motivation for this is to keep the EC firmware as simple as possible, since
- * it cannot be easily upgraded and EC flash/IRAM space is relatively
- * expensive.
- */
+// SPDX-License-Identifier: GPL-2.0
+// ChromeOS EC keyboard driver
+//
+// Copyright (C) 2012 Google, Inc.
+//
+// This driver uses the ChromeOS EC byte-level message-based protocol for
+// communicating the keyboard state (which keys are pressed) from a keyboard EC
+// to the AP over some bus (such as i2c, lpc, spi).  The EC does debouncing,
+// but everything else (including deghosting) is done here.  The main
+// motivation for this is to keep the EC firmware as simple as possible, since
+// it cannot be easily upgraded and EC flash/IRAM space is relatively
+// expensive.
 
 #include <linux/module.h>
 #include <linux/bitops.h>
-- 
2.17.1

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

* Re: [PATCH v3 00/12] cros_ec: Match licenses and switch to SPDX identifier.
  2018-06-06 15:08 [PATCH v3 00/12] cros_ec: Match licenses and switch to SPDX identifier Enric Balletbo i Serra
  2018-06-06 15:08 ` [PATCH v3 09/12] Input: cros_ec_keyb - Make license text and module license match Enric Balletbo i Serra
  2018-06-06 15:08 ` [PATCH v3 10/12] Input: cros_ec_keyb - Switch to SPDX identifier Enric Balletbo i Serra
@ 2018-06-06 15:42 ` Joe Perches
  2018-06-08  8:58   ` Enric Balletbo i Serra
  2 siblings, 1 reply; 7+ messages in thread
From: Joe Perches @ 2018-06-06 15:42 UTC (permalink / raw)
  To: Enric Balletbo i Serra, linux-kernel
  Cc: Gwendal Grignou, kernel, Dmitry Torokhov, Tony Luck,
	Alessandro Zummo, Paolo Cretaro, linux-iio, Alexandre Belloni,
	linux-i2c, Olof Johansson, linux-rtc, Anton Vorontsov,
	Chanwoo Choi, Benson Leung, linux-input, Lars-Peter Clausen,
	Jonathan Cameron, Peter Meerwald-Stadler, MyungJoo Ham, Lee Jones,
	Hartmut Knaack, Colin

On Wed, 2018-06-06 at 17:08 +0200, Enric Balletbo i Serra wrote:
> Dear all,
> 
> This patchset is just to adopt the SPDX license identifier for all
> ChromeOS Embedded Controller related drivers.

This bit is fine,

>  The patches touches
> different subsystems but every patch can be picked from their respective
> maintainer independently.
> 
> This third version takes the license note as the valid license (I did
> the contrary in the second version) so apart from add the SPDX tags it
> also introduces new patches to match the license.

But why change any MODULE_LICENSE text?

There are uses of MODULE_LICENSE("GPL") where
the SPDX license identifier is some GPL variant

For instance:
$ git grep -P --name-only
'MODULE_LICENSE\s*\("GPL"\s*\)\s*;'| \
  xargs grep "SPDX-License-
Identifier:" | \
  cut -f3- -d: | \
  sed -r 's@\s*\*/\s*$@@' | \
  sort |
uniq -c | sort -rn
    551  GPL-2.0+
    281  GPL-2.0
     13  GPL-1.0+
    
  9  GPL-2.0-only
      2  GPL-2.0 OR MIT
      1  (GPL-2.0 OR MPL-1.1)
   
   1  (GPL-2.0+ OR BSD-3-Clause)
      1  (GPL-2.0 OR BSD-3-Clause)

And if you were to do this, please do it tree-wide,
and ideally via a script

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

* Re: [PATCH v3 00/12] cros_ec: Match licenses and switch to SPDX identifier.
  2018-06-06 15:42 ` [PATCH v3 00/12] cros_ec: Match licenses and switch " Joe Perches
@ 2018-06-08  8:58   ` Enric Balletbo i Serra
  0 siblings, 0 replies; 7+ messages in thread
From: Enric Balletbo i Serra @ 2018-06-08  8:58 UTC (permalink / raw)
  To: Joe Perches, linux-kernel
  Cc: Gwendal Grignou, kernel, Dmitry Torokhov, Tony Luck,
	Alessandro Zummo, Paolo Cretaro, linux-iio, Alexandre Belloni,
	linux-i2c, Olof Johansson, linux-rtc, Anton Vorontsov,
	Chanwoo Choi, Benson Leung, linux-input, Lars-Peter Clausen,
	Jonathan Cameron, Peter Meerwald-Stadler, MyungJoo Ham, Lee Jones,
	Hartmut Knaack, Colin

Hi Joe,

On 06/06/18 17:42, Joe Perches wrote:
> On Wed, 2018-06-06 at 17:08 +0200, Enric Balletbo i Serra wrote:
>> Dear all,
>>
>> This patchset is just to adopt the SPDX license identifier for all
>> ChromeOS Embedded Controller related drivers.
> 
> This bit is fine,
> 
>>  The patches touches
>> different subsystems but every patch can be picked from their respective
>> maintainer independently.
>>
>> This third version takes the license note as the valid license (I did
>> the contrary in the second version) so apart from add the SPDX tags it
>> also introduces new patches to match the license.
> 
> But why change any MODULE_LICENSE text?
> 

Because in some cases there is a mismatch between the license note and the
MODULE_LICENSE text.

According to the documentation setting MODULE_LICENSE("GPL") means GNU Public
License v2 or later [1], in the cases where the license note tells explicitly
that is GPL v2 only I think that the MODULE_LICENSE should match and be changed
to "GPL v2".

[1] https://elixir.bootlin.com/linux/v4.17/source/include/linux/module.h#L172

> There are uses of MODULE_LICENSE("GPL") where
> the SPDX license identifier is some GPL variant
> 

Right, but I suppose in such cases is wrong and should be changed too?

> For instance:
> $ git grep -P --name-only
> 'MODULE_LICENSE\s*\("GPL"\s*\)\s*;'| \
>   xargs grep "SPDX-License-
> Identifier:" | \
>   cut -f3- -d: | \
>   sed -r 's@\s*\*/\s*$@@' | \
>   sort |
> uniq -c | sort -rn
>     551  GPL-2.0+
>     281  GPL-2.0
>      13  GPL-1.0+
>     
>   9  GPL-2.0-only
>       2  GPL-2.0 OR MIT
>       1  (GPL-2.0 OR MPL-1.1)
>    
>    1  (GPL-2.0+ OR BSD-3-Clause)
>       1  (GPL-2.0 OR BSD-3-Clause)
> 
> And if you were to do this, please do it tree-wide,
> and ideally via a script
> 

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

* Re: [PATCH v3 09/12] Input: cros_ec_keyb - Make license text and module license match.
  2018-06-06 15:08 ` [PATCH v3 09/12] Input: cros_ec_keyb - Make license text and module license match Enric Balletbo i Serra
@ 2018-06-12 23:30   ` Dmitry Torokhov
  0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Torokhov @ 2018-06-12 23:30 UTC (permalink / raw)
  To: Enric Balletbo i Serra; +Cc: linux-kernel, Gwendal Grignou, kernel, linux-input

On Wed, Jun 06, 2018 at 05:08:57PM +0200, Enric Balletbo i Serra wrote:
> The license text is specifying "GPLv2" but the MODULE_LICENSE is set to
> GPL which means GNU Public License v2 or later. When MODULE_LICENSE and
> boiler plate does not match, go for boiler plate license.
> 
> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>

Applied, thank you.

> ---
> 
> Changes in v3: None
> Changes in v2: None
> 
>  drivers/input/keyboard/cros_ec_keyb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/drivers/input/keyboard/cros_ec_keyb.c
> index 79eb29550c34..9dd8c146699f 100644
> --- a/drivers/input/keyboard/cros_ec_keyb.c
> +++ b/drivers/input/keyboard/cros_ec_keyb.c
> @@ -674,6 +674,6 @@ static struct platform_driver cros_ec_keyb_driver = {
>  
>  module_platform_driver(cros_ec_keyb_driver);
>  
> -MODULE_LICENSE("GPL");
> +MODULE_LICENSE("GPL v2");
>  MODULE_DESCRIPTION("ChromeOS EC keyboard driver");
>  MODULE_ALIAS("platform:cros-ec-keyb");
> -- 
> 2.17.1
> 

-- 
Dmitry

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

* Re: [PATCH v3 10/12] Input: cros_ec_keyb - Switch to SPDX identifier.
  2018-06-06 15:08 ` [PATCH v3 10/12] Input: cros_ec_keyb - Switch to SPDX identifier Enric Balletbo i Serra
@ 2018-06-12 23:30   ` Dmitry Torokhov
  0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Torokhov @ 2018-06-12 23:30 UTC (permalink / raw)
  To: Enric Balletbo i Serra; +Cc: linux-kernel, Gwendal Grignou, kernel, linux-input

On Wed, Jun 06, 2018 at 05:08:58PM +0200, Enric Balletbo i Serra wrote:
> Adopt the SPDX license identifier headers to ease license compliance
> management.
> 
> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>

Applied, thank you.

> ---
> 
> Changes in v3: None
> Changes in v2: None
> 
>  drivers/input/keyboard/cros_ec_keyb.c | 34 ++++++++++-----------------
>  1 file changed, 12 insertions(+), 22 deletions(-)
> 
> diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/drivers/input/keyboard/cros_ec_keyb.c
> index 9dd8c146699f..dd1b356d0004 100644
> --- a/drivers/input/keyboard/cros_ec_keyb.c
> +++ b/drivers/input/keyboard/cros_ec_keyb.c
> @@ -1,25 +1,15 @@
> -/*
> - * ChromeOS EC keyboard driver
> - *
> - * Copyright (C) 2012 Google, Inc
> - *
> - * This software is licensed under the terms of the GNU General Public
> - * License version 2, as published by the Free Software Foundation, and
> - * may be copied, distributed, and modified under those terms.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> - * GNU General Public License for more details.
> - *
> - * This driver uses the Chrome OS EC byte-level message-based protocol for
> - * communicating the keyboard state (which keys are pressed) from a keyboard EC
> - * to the AP over some bus (such as i2c, lpc, spi).  The EC does debouncing,
> - * but everything else (including deghosting) is done here.  The main
> - * motivation for this is to keep the EC firmware as simple as possible, since
> - * it cannot be easily upgraded and EC flash/IRAM space is relatively
> - * expensive.
> - */
> +// SPDX-License-Identifier: GPL-2.0
> +// ChromeOS EC keyboard driver
> +//
> +// Copyright (C) 2012 Google, Inc.
> +//
> +// This driver uses the ChromeOS EC byte-level message-based protocol for
> +// communicating the keyboard state (which keys are pressed) from a keyboard EC
> +// to the AP over some bus (such as i2c, lpc, spi).  The EC does debouncing,
> +// but everything else (including deghosting) is done here.  The main
> +// motivation for this is to keep the EC firmware as simple as possible, since
> +// it cannot be easily upgraded and EC flash/IRAM space is relatively
> +// expensive.
>  
>  #include <linux/module.h>
>  #include <linux/bitops.h>
> -- 
> 2.17.1
> 

-- 
Dmitry

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

end of thread, other threads:[~2018-06-12 23:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-06 15:08 [PATCH v3 00/12] cros_ec: Match licenses and switch to SPDX identifier Enric Balletbo i Serra
2018-06-06 15:08 ` [PATCH v3 09/12] Input: cros_ec_keyb - Make license text and module license match Enric Balletbo i Serra
2018-06-12 23:30   ` Dmitry Torokhov
2018-06-06 15:08 ` [PATCH v3 10/12] Input: cros_ec_keyb - Switch to SPDX identifier Enric Balletbo i Serra
2018-06-12 23:30   ` Dmitry Torokhov
2018-06-06 15:42 ` [PATCH v3 00/12] cros_ec: Match licenses and switch " Joe Perches
2018-06-08  8:58   ` Enric Balletbo i Serra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).