Skip to contentSkip to conversation

net: phy: Fixup GPLv2+ SPDX tags based on license text

PATCH Applied Andrew Lunn 3 participants 3 messages Jan 21, 2019 – Jan 23, 2019

Subsystems (4)
lore
Share & tools
lore

Andrew Lunn

author maintainer
#0 lore raw

PATCH 1/1 net: phy: Fixup GPLv2+ SPDX tags based on license text

A few PHY drivers have the GPLv2+ license text. They then either have a MODULE_LICENSE() of GPLv2 only, or an SPDX tag of GPLv2 only.

Since the license text is much easier to understand than either the SPDX tag or the MODULE_LICENSE, use it as the definitive source of the licence, and fixup the others when there are contradictions.

Cc David Wu <[email protected]>
Cc Dongpo Li <[email protected]>
Cc Michael Schmitz <[email protected]>
---
 drivers/net/phy/asix.c            |  8 +-------
 drivers/net/phy/mdio-hisi-femac.c | 16 ++--------------
 drivers/net/phy/rockchip.c        |  9 ++-------
 3 files changed, 5 insertions(+), 28 deletions(-)
drivers/net/phy/asix.c +1 -7
index 8ebe7f5484ae..f14ba5366b91 100644
@@ -1,13 +1,7 @@
-// SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0+
 /* Driver for Asix PHYs
  *
  * Author: Michael Schmitz <[email protected]>
- *
- * This program is free software; you can redistribute  it and/or modify it
- * under  the terms of  the GNU General  Public License as published by the
- * Free Software Foundation;  either version 2 of the  License, or (at your
- * option) any later version.
- *
  */
 #include <linux/kernel.h>
 #include <linux/errno.h>
drivers/net/phy/mdio-hisi-femac.c +2 -14
index b03fedd6c1d8..287f3ccf1da1 100644
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Hisilicon Fast Ethernet MDIO Bus Driver
  *
  * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include <linux/clk.h>
@@ -163,4 +151,4 @@ module_platform_driver(hisi_femac_mdio_driver);
 
 MODULE_DESCRIPTION("Hisilicon Fast Ethernet MAC MDIO interface driver");
 MODULE_AUTHOR("Dongpo Li <[email protected]>");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
drivers/net/phy/rockchip.c +2 -7
index f1da70b9b55f..95abf7072f32 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /**
  * drivers/net/phy/rockchip.c
  *
@@ -6,12 +7,6 @@
  * Copyright (c) 2017, Fuzhou Rockchip Electronics Co., Ltd
  *
  * David Wu <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
  */
 
 #include <linux/ethtool.h>
@@ -229,4 +224,4 @@ MODULE_DEVICE_TABLE(mdio, rockchip_phy_tbl);
 
 MODULE_AUTHOR("David Wu <[email protected]>");
 MODULE_DESCRIPTION("Rockchip Ethernet PHY driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
Signature · 1 line
2.20.1
Acked-by on v1 1/1
#1 lore raw

For the asix.c patch:

Quoted 96 lines · Andrew Lunn

A few PHY drivers have the GPLv2+ license text. They then either have a MODULE_LICENSE() of GPLv2 only, or an SPDX tag of GPLv2 only.

Since the license text is much easier to understand than either the SPDX tag or the MODULE_LICENSE, use it as the definitive source of the licence, and fixup the others when there are contradictions.

Cc David Wu <[email protected]>
Cc Dongpo Li <[email protected]>
Cc Michael Schmitz <[email protected]>
---
  drivers/net/phy/asix.c            |  8 +-------
  drivers/net/phy/mdio-hisi-femac.c | 16 ++--------------
  drivers/net/phy/rockchip.c        |  9 ++-------
  3 files changed, 5 insertions(+), 28 deletions(-)
drivers/net/phy/asix.c +1 -7
index 8ebe7f5484ae..f14ba5366b91 100644
@@ -1,13 +1,7 @@
-// SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0+
  /* Driver for Asix PHYs
   *
   * Author: Michael Schmitz <[email protected]>
- *
- * This program is free software; you can redistribute  it and/or modify it
- * under  the terms of  the GNU General  Public License as published by the
- * Free Software Foundation;  either version 2 of the  License, or (at your
- * option) any later version.
- *
   */
  #include <linux/kernel.h>
  #include <linux/errno.h>
drivers/net/phy/mdio-hisi-femac.c +2 -14
index b03fedd6c1d8..287f3ccf1da1 100644
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
  /*
   * Hisilicon Fast Ethernet MDIO Bus Driver
   *
   * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
   */
 
  #include <linux/clk.h>
@@ -163,4 +151,4 @@ module_platform_driver(hisi_femac_mdio_driver);
 
  MODULE_DESCRIPTION("Hisilicon Fast Ethernet MAC MDIO interface driver");
  MODULE_AUTHOR("Dongpo Li <[email protected]>");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
drivers/net/phy/rockchip.c +2 -7
index f1da70b9b55f..95abf7072f32 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
  /**
   * drivers/net/phy/rockchip.c
   *
@@ -6,12 +7,6 @@
   * Copyright (c) 2017, Fuzhou Rockchip Electronics Co., Ltd
   *
   * David Wu <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
   */
 
  #include <linux/ethtool.h>
@@ -229,4 +224,4 @@ MODULE_DEVICE_TABLE(mdio, rockchip_phy_tbl);
 
  MODULE_AUTHOR("David Wu <[email protected]>");
  MODULE_DESCRIPTION("Rockchip Ethernet PHY driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
maintainer Applied
#2 lore raw
In reply to Andrew Lunn

From: Andrew Lunn <[email protected]>
Date: Mon, 21 Jan 2019 19:08:49 +0100

Quoted 11 lines

A few PHY drivers have the GPLv2+ license text. They then either have a MODULE_LICENSE() of GPLv2 only, or an SPDX tag of GPLv2 only.

Since the license text is much easier to understand than either the SPDX tag or the MODULE_LICENSE, use it as the definitive source of the licence, and fixup the others when there are contradictions.

Cc David Wu <[email protected]>
Cc Dongpo Li <[email protected]>
Cc Michael Schmitz <[email protected]>

Applied, thanks for fixing this Andrew.