SPDX conversion for watchdog drivers
cover SPDX conversion for watchdog drivers
This mini SPDX conversion series focuses on watchdog drivers. It is splitted from v2 of my SPDX conversion series that is triggered by Didi's GPL full name fixes [1] to easify review.
The only missing bit compared to v2 is driver for SiByte SB1 watchdog driver (drivers/watchdog/sb_wdog.c). The driver is skipped because although theoretically SPDX license identifier for it is GPL-1.0-only OR GPL-2.0-only, it doesn't satisfy spdxcheck test. On the other hand, GPL-1.0+ isn't the answer either, since it will include GPL v3. With above constraints, the licensing requirement for sb_wdog can't be expressed acceptably, and so it is omitted from this series.
Happy reviewing!
[1]: https://lore.kernel.org/linux-spdx/[email protected]/
Bagas Sanjaya (2):
watchdog: Convert GPL 2.0 notice to SPDX identifier
watchdog: ibmasr: Replace GPL license notice with SPDX identifier
drivers/watchdog/ep93xx_wdt.c | 5 +---- drivers/watchdog/ibmasr.c | 3 +-- drivers/watchdog/m54xx_wdt.c | 4 +--- drivers/watchdog/max63xx_wdt.c | 5 +---- drivers/watchdog/moxart_wdt.c | 4 +--- drivers/watchdog/octeon-wdt-nmi.S | 5 +---- drivers/watchdog/orion_wdt.c | 4 +--- drivers/watchdog/rtd119x_wdt.c | 2 +- drivers/watchdog/sbc_fitpc2_wdt.c | 4 +--- drivers/watchdog/ts4800_wdt.c | 4 +--- drivers/watchdog/ts72xx_wdt.c | 4 +--- 11 files changed, 11 insertions(+), 33 deletions(-)
base-commit: 10f67d1fd275528e62109de2ece26371833638e5
Signature · 1 line
An old man doll... just what I always wanted! - Clara
PATCH 1/2 watchdog: Convert GPL 2.0 notice to SPDX identifier
Convert the boilerplate to SPDX license identifier. While at it, also move SPDX identifier for drivers/watchdog/rtd119x_wdt.c to the top of file (as in other files).
--- drivers/watchdog/ep93xx_wdt.c | 5 +---- drivers/watchdog/m54xx_wdt.c | 4 +--- drivers/watchdog/max63xx_wdt.c | 5 +---- drivers/watchdog/moxart_wdt.c | 4 +--- drivers/watchdog/octeon-wdt-nmi.S | 5 +---- drivers/watchdog/orion_wdt.c | 4 +--- drivers/watchdog/rtd119x_wdt.c | 2 +- drivers/watchdog/sbc_fitpc2_wdt.c | 4 +--- drivers/watchdog/ts4800_wdt.c | 4 +--- drivers/watchdog/ts72xx_wdt.c | 4 +--- 10 files changed, 10 insertions(+), 31 deletions(-)
drivers/watchdog/ep93xx_wdt.c +1 -4
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Watchdog driver for Cirrus Logic EP93xx family of devices. *
@@ -11,10 +12,6 @@* Copyright (c) 2012 H Hartley Sweeten <[email protected]> * Convert to a platform device and use the watchdog framework API * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. -* * This watchdog fires after 250msec, which is a too short interval * for us to rely on the user space daemon alone. So we ping the * wdt each ~200msec and eventually stop doing it if the user space
drivers/watchdog/m54xx_wdt.c +1 -3
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * drivers/watchdog/m54xx_wdt.c *
@@ -11,9 +12,6 @@* Copyright 2004 (c) MontaVista, Software, Inc. * Based on sa1100 driver, Copyright (C) 2000 Oleg Drokin <[email protected]> * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt
drivers/watchdog/max63xx_wdt.c +1 -4
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * drivers/char/watchdog/max63xx_wdt.c *
@@ -5,10 +6,6 @@* * Copyright (C) 2009 Marc Zyngier <[email protected]> * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. -* * This driver assumes the watchdog pins are memory mapped (as it is * the case for the Arcom Zeus). Should it be connected over GPIOs or * another interface, some abstraction will have to be introduced.
drivers/watchdog/moxart_wdt.c +1 -3
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * MOXA ART SoCs watchdog driver. *
@@ -5,9 +6,6 @@* * Jonas Jensen <[email protected]> * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #include <linux/clk.h>
drivers/watchdog/octeon-wdt-nmi.S +1 -4
@@ -1,8 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ /* - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - * * Copyright (C) 2007-2017 Cavium, Inc. */ #include <asm/asm.h>
drivers/watchdog/orion_wdt.c +1 -3
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * drivers/watchdog/orion_wdt.c *
@@ -5,9 +6,6 @@* * Author: Sylver Bruneau <[email protected]> * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt
drivers/watchdog/rtd119x_wdt.c +1 -1
@@ -1,9 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Realtek RTD129x watchdog * * Copyright (c) 2017 Andreas Färber * -* SPDX-License-Identifier: GPL-2.0+ */ #include <linux/bitops.h>
drivers/watchdog/sbc_fitpc2_wdt.c +1 -3
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Watchdog driver for SBC-FITPC2 board *
@@ -5,9 +6,6 @@* * Adapted from the IXP2000 watchdog driver by Deepak Saxena. * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #define pr_fmt (fmt) KBUILD_MODNAME " WATCHDOG: " fmt
drivers/watchdog/ts4800_wdt.c +1 -3
@@ -1,11 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Watchdog driver for TS-4800 based boards * * Copyright (c) 2015 - Savoir-faire Linux * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #include <linux/kernel.h>
drivers/watchdog/ts72xx_wdt.c +1 -3
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Watchdog driver for Technologic Systems TS-72xx based SBCs * (TS-7200, TS-7250 and TS-7260). These boards have external
@@ -8,9 +9,6 @@* * This driver is based on ep93xx_wdt and wm831x_wdt drivers. * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #include <linux/platform_device.h>
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Re: [PATCH 1/2] watchdog: Convert GPL 2.0 notice to SPDX identifier
Quoted 4 lines · Bagas Sanjaya
Convert the boilerplate to SPDX license identifier. While at it, also move SPDX identifier for
drivers/watchdog/rtd119x_wdt.cto the top of file (as in other files).
Quoted 9 lines
Cc Ray Lehtiniemi <[email protected]>,Cc Alessandro Zummo <[email protected]>Cc H Hartley Sweeten <[email protected]>Cc Deepak Saxena <[email protected]>Cc Marc Zyngier <[email protected]>Cc Jonas Jensen <[email protected]>Cc Sylver Bruneau <[email protected]>Cc Denis Turischev <[email protected]>Cc Mika Westerberg <[email protected]>
For ts72xx_wdt.c,
Re: [PATCH 1/2] watchdog: Convert GPL 2.0 notice to SPDX identifier
In reply to Bagas SanjayaQuoted 4 lines · Bagas Sanjaya
Convert the boilerplate to SPDX license identifier. While at it, also move SPDX identifier for
drivers/watchdog/rtd119x_wdt.cto the top of file (as in other files).
Quoted 11 lines
Cc Ray Lehtiniemi <[email protected]>,Cc Alessandro Zummo <[email protected]>Cc H Hartley Sweeten <[email protected]>Cc Deepak Saxena <[email protected]>Cc Marc Zyngier <[email protected]>Cc Jonas Jensen <[email protected]>Cc Sylver Bruneau <[email protected]>Cc Denis Turischev <[email protected]>Cc Mika Westerberg <[email protected]>Acked-by Andreas Färber <[email protected]>Signed-off-by Bagas Sanjaya <[email protected]>
Quoted 197 lines
--- drivers/watchdog/ep93xx_wdt.c | 5 +---- drivers/watchdog/m54xx_wdt.c | 4 +--- drivers/watchdog/max63xx_wdt.c | 5 +---- drivers/watchdog/moxart_wdt.c | 4 +--- drivers/watchdog/octeon-wdt-nmi.S | 5 +---- drivers/watchdog/orion_wdt.c | 4 +--- drivers/watchdog/rtd119x_wdt.c | 2 +- drivers/watchdog/sbc_fitpc2_wdt.c | 4 +--- drivers/watchdog/ts4800_wdt.c | 4 +--- drivers/watchdog/ts72xx_wdt.c | 4 +--- 10 files changed, 10 insertions(+), 31 deletions(-)drivers/watchdog/ep93xx_wdt.c +1
-4@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Watchdog driver for Cirrus Logic EP93xx family of devices. * @@ -11,10 +12,6 @@* Copyright (c) 2012 H Hartley Sweeten <[email protected]> * Convert to a platform device and use the watchdog framework API * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. -* * This watchdog fires after 250msec, which is a too short interval * for us to rely on the user space daemon alone. So we ping the * wdt each ~200msec and eventually stop doing it if the user space drivers/watchdog/m54xx_wdt.c +1
-3@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * drivers/watchdog/m54xx_wdt.c * @@ -11,9 +12,6 @@* Copyright 2004 (c) MontaVista, Software, Inc. * Based on sa1100 driver, Copyright (C) 2000 Oleg Drokin <[email protected]> * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #define pr_fmt (fmt) KBUILD_MODNAME ": " fmtdrivers/watchdog/max63xx_wdt.c +1
-4@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * drivers/char/watchdog/max63xx_wdt.c * @@ -5,10 +6,6 @@* * Copyright (C) 2009 Marc Zyngier <[email protected]> * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. -* * This driver assumes the watchdog pins are memory mapped (as it is * the case for the Arcom Zeus). Should it be connected over GPIOs or * another interface, some abstraction will have to be introduced. drivers/watchdog/moxart_wdt.c +1
-3@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * MOXA ART SoCs watchdog driver. * @@ -5,9 +6,6 @@* * Jonas Jensen <[email protected]> * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #include <linux/clk.h> drivers/watchdog/octeon-wdt-nmi.S +1
-4@@ -1,8 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ /* - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - * * Copyright (C) 2007-2017 Cavium, Inc. */ #include <asm/asm.h>drivers/watchdog/orion_wdt.c +1
-3@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * drivers/watchdog/orion_wdt.c * @@ -5,9 +6,6 @@* * Author: Sylver Bruneau <[email protected]> * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #define pr_fmt (fmt) KBUILD_MODNAME ": " fmtdrivers/watchdog/rtd119x_wdt.c +1
-1@@ -1,9 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Realtek RTD129x watchdog * * Copyright (c) 2017 Andreas Färber * -* SPDX-License-Identifier: GPL-2.0+ */ #include <linux/bitops.h> drivers/watchdog/sbc_fitpc2_wdt.c +1
-3@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Watchdog driver for SBC-FITPC2 board * @@ -5,9 +6,6 @@* * Adapted from the IXP2000 watchdog driver by Deepak Saxena. * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #define pr_fmt (fmt) KBUILD_MODNAME " WATCHDOG: " fmtdrivers/watchdog/ts4800_wdt.c +1
-3@@ -1,11 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Watchdog driver for TS-4800 based boards * * Copyright (c) 2015 - Savoir-faire Linux * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #include <linux/kernel.h> drivers/watchdog/ts72xx_wdt.c +1
-3@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Watchdog driver for Technologic Systems TS-72xx based SBCs * (TS-7200, TS-7250 and TS-7260). These boards have external @@ -8,9 +9,6 @@* * This driver is based on ep93xx_wdt and wm831x_wdt drivers. * -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #include <linux/platform_device.h> Signature · 1 line
An old man doll... just what I always wanted! - Clara
PATCH 2/2 watchdog: ibmasr: Replace GPL license notice with SPDX identifier
In reply to Bagas SanjayaReplace unversioned GPL license notice with appropriate SPDX license identifier, which is GPL 1.0+.
--- drivers/watchdog/ibmasr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/watchdog/ibmasr.c +1 -2
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-1.0+ /* * IBM Automatic Server Restart driver. *
@@ -6,8 +7,6 @@* Based on driver written by Pete Reynolds. * Copyright (c) IBM Corporation, 1998-2004. * -* This software may be used and distributed according to the terms -* of the GNU Public License, incorporated herein by reference. */ #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Re: [PATCH 2/2] watchdog: ibmasr: Replace GPL license notice with SPDX identifier
Quoted 5 lines · Bagas Sanjaya
Replace unversioned GPL license notice with appropriate SPDX license identifier, which is GPL 1.0+.
Cc Andrey Panin <[email protected]>Signed-off-by Bagas Sanjaya <[email protected]>