* [PATCH v2 0/8] cros_ec: Switch to SPDX identifier.
@ 2018-06-05 17:54 Enric Balletbo i Serra
2018-06-05 17:54 ` [PATCH v2 5/8] Input: cros_ec_keyb - " Enric Balletbo i Serra
0 siblings, 1 reply; 11+ messages in thread
From: Enric Balletbo i Serra @ 2018-06-05 17:54 UTC (permalink / raw)
To: linux-kernel
Cc: Gwendal Grignou, kernel, Tony Luck, Paolo Cretaro, linux-iio,
linux-i2c, Olof Johansson, Anton Vorontsov, Chanwoo Choi,
Benson Leung, linux-input, Dmitry Torokhov, Jonathan Cameron,
Peter Meerwald-Stadler, linux-pwm, Thierry Reding, MyungJoo Ham,
Lee Jones, Hartmut Knaack, Colin Cross, Kees Cook, Lars-Pete
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 second version fixes some copy paste errors in the copyright year
and takes care to no remove the paragraphs that have nothing to do with
license notice.
Thanks,
Enric
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 (8):
platform/chrome: cros_ec: Switch to SPDX identifier.
platform/chrome: pstore: Switch to SPDX identifier.
mfd: cros_ec: Add or fix SPDX-License-Identifier in all files.
iio: cros_ec: Switch to SPDX identifier.
Input: cros_ec_keyb - Switch to SPDX identifier.
pwm: cros-ec: Switch to SPDX identifier.
extcon: usbc-cros-ec: Switch to SPDX identifier.
i2c: i2c-cros-ec-tunnel: Switch to SPDX identifier.
drivers/extcon/extcon-usbc-cros-ec.c | 20 +++--------
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 | 34 +++++++------------
drivers/mfd/cros_ec.c | 26 +++++---------
drivers/mfd/cros_ec_dev.c | 23 +++----------
drivers/mfd/cros_ec_dev.h | 16 ++-------
drivers/mfd/cros_ec_i2c.c | 18 +++-------
drivers/mfd/cros_ec_spi.c | 20 +++--------
drivers/platform/chrome/chromeos_pstore.c | 13 +++----
drivers/platform/chrome/cros_ec_debugfs.c | 22 +++---------
drivers/platform/chrome/cros_ec_lightbar.c | 22 +++---------
drivers/platform/chrome/cros_ec_lpc.c | 34 +++++++------------
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/pwm/pwm-cros-ec.c | 13 +++----
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, 152 insertions(+), 440 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.
2018-06-05 17:54 [PATCH v2 0/8] cros_ec: Switch to SPDX identifier Enric Balletbo i Serra
@ 2018-06-05 17:54 ` Enric Balletbo i Serra
2018-06-05 18:04 ` Fabio Estevam
0 siblings, 1 reply; 11+ messages in thread
From: Enric Balletbo i Serra @ 2018-06-05 17:54 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 v2:
- [6/9] Do not remove last paragraph.
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 79eb29550c34..91b2839c12df 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] 11+ messages in thread
* Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.
2018-06-05 17:54 ` [PATCH v2 5/8] Input: cros_ec_keyb - " Enric Balletbo i Serra
@ 2018-06-05 18:04 ` Fabio Estevam
2018-06-05 18:14 ` Enric Balletbo i Serra
0 siblings, 1 reply; 11+ messages in thread
From: Fabio Estevam @ 2018-06-05 18:04 UTC (permalink / raw)
To: Enric Balletbo i Serra
Cc: linux-kernel, Gwendal Grignou, kernel, Dmitry Torokhov,
linux-input
Hi Enric,
On Tue, Jun 5, 2018 at 2:54 PM, Enric Balletbo i Serra
<enric.balletbo@collabora.com> wrote:
> Adopt the SPDX license identifier headers to ease license compliance
> management.
>
> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> ---
>
> Changes in v2:
> - [6/9] Do not remove last paragraph.
>
> 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 79eb29550c34..91b2839c12df 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
Original text says GPL-2.0...
> - * 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+
but here you add a GPL-2.0+ type.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.
2018-06-05 18:04 ` Fabio Estevam
@ 2018-06-05 18:14 ` Enric Balletbo i Serra
2018-06-05 18:16 ` Fabio Estevam
2018-06-25 1:57 ` Greg KH
0 siblings, 2 replies; 11+ messages in thread
From: Enric Balletbo i Serra @ 2018-06-05 18:14 UTC (permalink / raw)
To: Fabio Estevam
Cc: linux-kernel, Gwendal Grignou, kernel, Dmitry Torokhov,
linux-input
Hi Fabio,
On 05/06/18 20:04, Fabio Estevam wrote:
> Hi Enric,
>
> On Tue, Jun 5, 2018 at 2:54 PM, Enric Balletbo i Serra
> <enric.balletbo@collabora.com> wrote:
>> Adopt the SPDX license identifier headers to ease license compliance
>> management.
>>
>> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
>> ---
>>
>> Changes in v2:
>> - [6/9] Do not remove last paragraph.
>>
>> 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 79eb29550c34..91b2839c12df 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
>
> Original text says GPL-2.0...
>
>> - * 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+
>
> but here you add a GPL-2.0+ type.
>
Right, but the module license is set to GPL which means GNU Public License v2 or
later, see [1]. So, there is a mismatch. In such cases I assumed GPL-2.0+ as the
default. These mismatches are common so I think that should be fine for the
authors, if someone is disagree just let me know and I will change.
Best regards,
Enric
[1]
https://elixir.bootlin.com/linux/v4.17/source/drivers/input/keyboard/cros_ec_keyb.c#L677
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.
2018-06-05 18:14 ` Enric Balletbo i Serra
@ 2018-06-05 18:16 ` Fabio Estevam
2018-06-05 18:29 ` Dmitry Torokhov
2018-06-25 1:57 ` Greg KH
1 sibling, 1 reply; 11+ messages in thread
From: Fabio Estevam @ 2018-06-05 18:16 UTC (permalink / raw)
To: Enric Balletbo i Serra
Cc: linux-kernel, Gwendal Grignou, kernel, Dmitry Torokhov,
linux-input
Hi Enric,
On Tue, Jun 5, 2018 at 3:14 PM, Enric Balletbo i Serra
<enric.balletbo@collabora.com> wrote:
> Right, but the module license is set to GPL which means GNU Public License v2 or
> later, see [1]. So, there is a mismatch. In such cases I assumed GPL-2.0+ as the
> default. These mismatches are common so I think that should be fine for the
> authors, if someone is disagree just let me know and I will change.
Ok, but I think you should add this explanation in the commit log to
make it clearer.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.
2018-06-05 18:16 ` Fabio Estevam
@ 2018-06-05 18:29 ` Dmitry Torokhov
2018-06-05 18:45 ` Enric Balletbo i Serra
0 siblings, 1 reply; 11+ messages in thread
From: Dmitry Torokhov @ 2018-06-05 18:29 UTC (permalink / raw)
To: Fabio Estevam
Cc: Enric Balletbo i Serra, linux-kernel, Gwendal Grignou, kernel,
linux-input
On Tue, Jun 05, 2018 at 03:16:40PM -0300, Fabio Estevam wrote:
> Hi Enric,
>
> On Tue, Jun 5, 2018 at 3:14 PM, Enric Balletbo i Serra
> <enric.balletbo@collabora.com> wrote:
>
> > Right, but the module license is set to GPL which means GNU Public License v2 or
> > later, see [1]. So, there is a mismatch. In such cases I assumed GPL-2.0+ as the
> > default. These mismatches are common so I think that should be fine for the
> > authors, if someone is disagree just let me know and I will change.
>
> Ok, but I think you should add this explanation in the commit log to
> make it clearer.
If there is a conflict between the license notice and MODULE_LICENSE()
we should go by the license notice. The license note is usually approved
by companies, whereas MIODULE_LICENSE()s get moved, adjusted, etc.
For ChromeOS kernel changes license notice is GPL v2 as documented at:
https://www.chromium.org/chromium-os/how-tos-and-troubleshooting/kernel-faq
section "Which copyright header should I use?"
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.
2018-06-05 18:29 ` Dmitry Torokhov
@ 2018-06-05 18:45 ` Enric Balletbo i Serra
2018-06-05 18:52 ` Dmitry Torokhov
0 siblings, 1 reply; 11+ messages in thread
From: Enric Balletbo i Serra @ 2018-06-05 18:45 UTC (permalink / raw)
To: Dmitry Torokhov, Fabio Estevam
Cc: linux-kernel, Gwendal Grignou, kernel, linux-input
Hi Dmitry,
On 05/06/18 20:29, Dmitry Torokhov wrote:
> On Tue, Jun 05, 2018 at 03:16:40PM -0300, Fabio Estevam wrote:
>> Hi Enric,
>>
>> On Tue, Jun 5, 2018 at 3:14 PM, Enric Balletbo i Serra
>> <enric.balletbo@collabora.com> wrote:
>>
>>> Right, but the module license is set to GPL which means GNU Public License v2 or
>>> later, see [1]. So, there is a mismatch. In such cases I assumed GPL-2.0+ as the
>>> default. These mismatches are common so I think that should be fine for the
>>> authors, if someone is disagree just let me know and I will change.
>>
>> Ok, but I think you should add this explanation in the commit log to
>> make it clearer.
>
> If there is a conflict between the license notice and MODULE_LICENSE()
> we should go by the license notice. The license note is usually approved
> by companies, whereas MIODULE_LICENSE()s get moved, adjusted, etc.
>
> For ChromeOS kernel changes license notice is GPL v2 as documented at:
>
> https://www.chromium.org/chromium-os/how-tos-and-troubleshooting/kernel-faq
>
> section "Which copyright header should I use?"
>
Many thanks to share and clarify this.
There is lots of mismatches so I'll send another version fixing this and
changing all to GPL v2. I assume I should also modify the MODULE_LICENSE when
it's wrong.
Thanks.
Enric
> Thanks.
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.
2018-06-05 18:45 ` Enric Balletbo i Serra
@ 2018-06-05 18:52 ` Dmitry Torokhov
0 siblings, 0 replies; 11+ messages in thread
From: Dmitry Torokhov @ 2018-06-05 18:52 UTC (permalink / raw)
To: Enric Balletbo i Serra
Cc: Fabio Estevam, linux-kernel, Gwendal Grignou, kernel, linux-input
On Tue, Jun 05, 2018 at 08:45:44PM +0200, Enric Balletbo i Serra wrote:
> Hi Dmitry,
>
> On 05/06/18 20:29, Dmitry Torokhov wrote:
> > On Tue, Jun 05, 2018 at 03:16:40PM -0300, Fabio Estevam wrote:
> >> Hi Enric,
> >>
> >> On Tue, Jun 5, 2018 at 3:14 PM, Enric Balletbo i Serra
> >> <enric.balletbo@collabora.com> wrote:
> >>
> >>> Right, but the module license is set to GPL which means GNU Public License v2 or
> >>> later, see [1]. So, there is a mismatch. In such cases I assumed GPL-2.0+ as the
> >>> default. These mismatches are common so I think that should be fine for the
> >>> authors, if someone is disagree just let me know and I will change.
> >>
> >> Ok, but I think you should add this explanation in the commit log to
> >> make it clearer.
> >
> > If there is a conflict between the license notice and MODULE_LICENSE()
> > we should go by the license notice. The license note is usually approved
> > by companies, whereas MIODULE_LICENSE()s get moved, adjusted, etc.
> >
> > For ChromeOS kernel changes license notice is GPL v2 as documented at:
> >
> > https://www.chromium.org/chromium-os/how-tos-and-troubleshooting/kernel-faq
> >
> > section "Which copyright header should I use?"
> >
>
> Many thanks to share and clarify this.
>
> There is lots of mismatches so I'll send another version fixing this and
> changing all to GPL v2. I assume I should also modify the MODULE_LICENSE when
> it's wrong.
I'd have a round of changes having MODULE_LICENSE() match the license
notice, and then separate patches for changing over to SPDX tags.
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.
2018-06-05 18:14 ` Enric Balletbo i Serra
2018-06-05 18:16 ` Fabio Estevam
@ 2018-06-25 1:57 ` Greg KH
2018-06-25 6:23 ` Enric Balletbo i Serra
1 sibling, 1 reply; 11+ messages in thread
From: Greg KH @ 2018-06-25 1:57 UTC (permalink / raw)
To: Enric Balletbo i Serra
Cc: Fabio Estevam, linux-kernel, Gwendal Grignou, kernel,
Dmitry Torokhov, linux-input
On Tue, Jun 05, 2018 at 08:14:24PM +0200, Enric Balletbo i Serra wrote:
> Hi Fabio,
>
> On 05/06/18 20:04, Fabio Estevam wrote:
> > Hi Enric,
> >
> > On Tue, Jun 5, 2018 at 2:54 PM, Enric Balletbo i Serra
> > <enric.balletbo@collabora.com> wrote:
> >> Adopt the SPDX license identifier headers to ease license compliance
> >> management.
> >>
> >> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> >> ---
> >>
> >> Changes in v2:
> >> - [6/9] Do not remove last paragraph.
> >>
> >> 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 79eb29550c34..91b2839c12df 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
> >
> > Original text says GPL-2.0...
> >
> >> - * 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+
> >
> > but here you add a GPL-2.0+ type.
> >
>
> Right, but the module license is set to GPL which means GNU Public License v2 or
> later, see [1]. So, there is a mismatch. In such cases I assumed GPL-2.0+ as the
> default. These mismatches are common so I think that should be fine for the
> authors, if someone is disagree just let me know and I will change.
NO!
The license text is what you need to follow as almost everyone gets the
MODULE_LICENSE() stuff wrong. You can not follow the MODULE_LICENSE
marking for determining GPLv2 vs. GPLv2+ at this point in time. After
we get the SPDX stuff all cleaned up then we can go and fix up the
MODULE_LICENSE mismatch.
So again, always defer to the license text in the file, NOT the
MODULE_LICENSE() marking.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.
2018-06-25 1:57 ` Greg KH
@ 2018-06-25 6:23 ` Enric Balletbo i Serra
2018-06-25 6:42 ` Greg KH
0 siblings, 1 reply; 11+ messages in thread
From: Enric Balletbo i Serra @ 2018-06-25 6:23 UTC (permalink / raw)
To: Greg KH
Cc: Fabio Estevam, linux-kernel, Gwendal Grignou, kernel,
Dmitry Torokhov, linux-input
Hi Grek,
On 25/06/18 03:57, Greg KH wrote:
> On Tue, Jun 05, 2018 at 08:14:24PM +0200, Enric Balletbo i Serra wrote:
>> Hi Fabio,
>>
>> On 05/06/18 20:04, Fabio Estevam wrote:
>>> Hi Enric,
>>>
>>> On Tue, Jun 5, 2018 at 2:54 PM, Enric Balletbo i Serra
>>> <enric.balletbo@collabora.com> wrote:
>>>> Adopt the SPDX license identifier headers to ease license compliance
>>>> management.
>>>>
>>>> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
>>>> ---
>>>>
>>>> Changes in v2:
>>>> - [6/9] Do not remove last paragraph.
>>>>
>>>> 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 79eb29550c34..91b2839c12df 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
>>>
>>> Original text says GPL-2.0...
>>>
>>>> - * 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+
>>>
>>> but here you add a GPL-2.0+ type.
>>>
>>
>> Right, but the module license is set to GPL which means GNU Public License v2 or
>> later, see [1]. So, there is a mismatch. In such cases I assumed GPL-2.0+ as the
>> default. These mismatches are common so I think that should be fine for the
>> authors, if someone is disagree just let me know and I will change.
>
> NO!
>
> The license text is what you need to follow as almost everyone gets the
> MODULE_LICENSE() stuff wrong. You can not follow the MODULE_LICENSE
> marking for determining GPLv2 vs. GPLv2+ at this point in time. After
> we get the SPDX stuff all cleaned up then we can go and fix up the
> MODULE_LICENSE mismatch.
>
> So again, always defer to the license text in the file, NOT the
> MODULE_LICENSE() marking.
>
Many thanks for your feedback, Dmitry already told me that I was doing wrong
this and I sent another version following the license text, so this patchset was
superseded for v3 [1].
[1] https://patchwork.ozlabs.org/cover/925906/
Thanks,
Enric
> thanks,
>
> greg k-h
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.
2018-06-25 6:23 ` Enric Balletbo i Serra
@ 2018-06-25 6:42 ` Greg KH
0 siblings, 0 replies; 11+ messages in thread
From: Greg KH @ 2018-06-25 6:42 UTC (permalink / raw)
To: Enric Balletbo i Serra
Cc: Fabio Estevam, linux-kernel, Gwendal Grignou, kernel,
Dmitry Torokhov, linux-input
On Mon, Jun 25, 2018 at 08:23:38AM +0200, Enric Balletbo i Serra wrote:
> Hi Grek,
>
> On 25/06/18 03:57, Greg KH wrote:
> > On Tue, Jun 05, 2018 at 08:14:24PM +0200, Enric Balletbo i Serra wrote:
> >> Hi Fabio,
> >>
> >> On 05/06/18 20:04, Fabio Estevam wrote:
> >>> Hi Enric,
> >>>
> >>> On Tue, Jun 5, 2018 at 2:54 PM, Enric Balletbo i Serra
> >>> <enric.balletbo@collabora.com> wrote:
> >>>> Adopt the SPDX license identifier headers to ease license compliance
> >>>> management.
> >>>>
> >>>> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> >>>> ---
> >>>>
> >>>> Changes in v2:
> >>>> - [6/9] Do not remove last paragraph.
> >>>>
> >>>> 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 79eb29550c34..91b2839c12df 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
> >>>
> >>> Original text says GPL-2.0...
> >>>
> >>>> - * 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+
> >>>
> >>> but here you add a GPL-2.0+ type.
> >>>
> >>
> >> Right, but the module license is set to GPL which means GNU Public License v2 or
> >> later, see [1]. So, there is a mismatch. In such cases I assumed GPL-2.0+ as the
> >> default. These mismatches are common so I think that should be fine for the
> >> authors, if someone is disagree just let me know and I will change.
> >
> > NO!
> >
> > The license text is what you need to follow as almost everyone gets the
> > MODULE_LICENSE() stuff wrong. You can not follow the MODULE_LICENSE
> > marking for determining GPLv2 vs. GPLv2+ at this point in time. After
> > we get the SPDX stuff all cleaned up then we can go and fix up the
> > MODULE_LICENSE mismatch.
> >
> > So again, always defer to the license text in the file, NOT the
> > MODULE_LICENSE() marking.
> >
>
> Many thanks for your feedback, Dmitry already told me that I was doing wrong
> this and I sent another version following the license text, so this patchset was
> superseded for v3 [1].
>
> [1] https://patchwork.ozlabs.org/cover/925906/
Ah, good, sorry for the noise then, I didn't see that series.
greg k-h
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2018-06-25 6:42 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-05 17:54 [PATCH v2 0/8] cros_ec: Switch to SPDX identifier Enric Balletbo i Serra
2018-06-05 17:54 ` [PATCH v2 5/8] Input: cros_ec_keyb - " Enric Balletbo i Serra
2018-06-05 18:04 ` Fabio Estevam
2018-06-05 18:14 ` Enric Balletbo i Serra
2018-06-05 18:16 ` Fabio Estevam
2018-06-05 18:29 ` Dmitry Torokhov
2018-06-05 18:45 ` Enric Balletbo i Serra
2018-06-05 18:52 ` Dmitry Torokhov
2018-06-25 1:57 ` Greg KH
2018-06-25 6:23 ` Enric Balletbo i Serra
2018-06-25 6:42 ` Greg KH
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).