[openwrt/openwrt] generic: 6.1: manually refresh backport patches

LEDE Commits lede-commits at lists.infradead.org
Mon May 22 13:40:22 PDT 2023


ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/9aee67efbb4dbb9f813512f60e80a6d7ade66143

commit 9aee67efbb4dbb9f813512f60e80a6d7ade66143
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Wed Oct 19 00:56:57 2022 +0200

    generic: 6.1: manually refresh backport patches
    
    Refresh backport patches that still needs to be merged for kernel 6.1.
    
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 ....4-0004-mtd-core-prepare-mtd_otp_nvmem_add-to-handle-EPROBE_.patch | 4 ++--
 .../707-v6.3-net-pcs-add-driver-for-MediaTek-SGMII-PCS.patch          | 4 ++--
 ...02-v6.3-net-ethernet-mtk_eth_soc-increase-tx-ring-side-for-Q.patch | 2 +-
 ...08-v6.3-net-dsa-add-support-for-DSA-rx-offloading-via-metada.patch | 4 ++--
 .../backport-6.1/828-v6.4-0003-of-Rename-of_modalias_node.patch       | 4 ++--
 5 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/target/linux/generic/backport-6.1/424-v6.4-0004-mtd-core-prepare-mtd_otp_nvmem_add-to-handle-EPROBE_.patch b/target/linux/generic/backport-6.1/424-v6.4-0004-mtd-core-prepare-mtd_otp_nvmem_add-to-handle-EPROBE_.patch
index 2d89a5db12..017a58ba63 100644
--- a/target/linux/generic/backport-6.1/424-v6.4-0004-mtd-core-prepare-mtd_otp_nvmem_add-to-handle-EPROBE_.patch
+++ b/target/linux/generic/backport-6.1/424-v6.4-0004-mtd-core-prepare-mtd_otp_nvmem_add-to-handle-EPROBE_.patch
@@ -37,9 +37,9 @@ Link: https://lore.kernel.org/linux-mtd/20230308082021.870459-4-michael@walle.cc
  				goto err;
  			}
 @@ -991,7 +990,7 @@ static int mtd_otp_nvmem_add(struct mtd_
+ 
  err:
- 	if (mtd->otp_user_nvmem)
- 		nvmem_unregister(mtd->otp_user_nvmem);
+ 	nvmem_unregister(mtd->otp_user_nvmem);
 -	return err;
 +	return dev_err_probe(dev, err, "Failed to register OTP NVMEM device\n");
  }
diff --git a/target/linux/generic/backport-6.1/707-v6.3-net-pcs-add-driver-for-MediaTek-SGMII-PCS.patch b/target/linux/generic/backport-6.1/707-v6.3-net-pcs-add-driver-for-MediaTek-SGMII-PCS.patch
index 9743a3f206..6a82d191f9 100644
--- a/target/linux/generic/backport-6.1/707-v6.3-net-pcs-add-driver-for-MediaTek-SGMII-PCS.patch
+++ b/target/linux/generic/backport-6.1/707-v6.3-net-pcs-add-driver-for-MediaTek-SGMII-PCS.patch
@@ -64,9 +64,9 @@ Signed-off-by: Jakub Kicinski <kuba at kernel.org>
 --- a/drivers/net/pcs/Makefile
 +++ b/drivers/net/pcs/Makefile
 @@ -5,3 +5,4 @@ pcs_xpcs-$(CONFIG_PCS_XPCS)	:= pcs-xpcs.
- 
- obj-$(CONFIG_PCS_XPCS)		+= pcs_xpcs.o
  obj-$(CONFIG_PCS_LYNX)		+= pcs-lynx.o
+ obj-$(CONFIG_PCS_RZN1_MIIC)	+= pcs-rzn1-miic.o
+ obj-$(CONFIG_PCS_ALTERA_TSE)	+= pcs-altera-tse.o
 +obj-$(CONFIG_PCS_MTK_LYNXI)	+= pcs-mtk-lynxi.o
 --- /dev/null
 +++ b/drivers/net/pcs/pcs-mtk-lynxi.c
diff --git a/target/linux/generic/backport-6.1/730-02-v6.3-net-ethernet-mtk_eth_soc-increase-tx-ring-side-for-Q.patch b/target/linux/generic/backport-6.1/730-02-v6.3-net-ethernet-mtk_eth_soc-increase-tx-ring-side-for-Q.patch
index b3412df9e0..1324537384 100644
--- a/target/linux/generic/backport-6.1/730-02-v6.3-net-ethernet-mtk_eth_soc-increase-tx-ring-side-for-Q.patch
+++ b/target/linux/generic/backport-6.1/730-02-v6.3-net-ethernet-mtk_eth_soc-increase-tx-ring-side-for-Q.patch
@@ -102,7 +102,7 @@ Signed-off-by: Felix Fietkau <nbd at nbd.name>
  	if (ring->buf) {
 -		for (i = 0; i < MTK_DMA_SIZE; i++)
 +		for (i = 0; i < ring->dma_size; i++)
- 			mtk_tx_unmap(eth, &ring->buf[i], false);
+ 			mtk_tx_unmap(eth, &ring->buf[i], NULL, false);
  		kfree(ring->buf);
  		ring->buf = NULL;
 @@ -2247,14 +2253,14 @@ static void mtk_tx_clean(struct mtk_eth
diff --git a/target/linux/generic/backport-6.1/730-08-v6.3-net-dsa-add-support-for-DSA-rx-offloading-via-metada.patch b/target/linux/generic/backport-6.1/730-08-v6.3-net-dsa-add-support-for-DSA-rx-offloading-via-metada.patch
index 0478cb528e..5458279fff 100644
--- a/target/linux/generic/backport-6.1/730-08-v6.3-net-dsa-add-support-for-DSA-rx-offloading-via-metada.patch
+++ b/target/linux/generic/backport-6.1/730-08-v6.3-net-dsa-add-support-for-DSA-rx-offloading-via-metada.patch
@@ -31,9 +31,9 @@ Signed-off-by: Felix Fietkau <nbd at nbd.name>
 --- a/net/dsa/dsa.c
 +++ b/net/dsa/dsa.c
 @@ -20,6 +20,7 @@
- #include <linux/phy_fixed.h>
+ #include <linux/netdevice.h>
+ #include <linux/sysfs.h>
  #include <linux/ptp_classify.h>
- #include <linux/etherdevice.h>
 +#include <net/dst_metadata.h>
  
  #include "dsa_priv.h"
diff --git a/target/linux/generic/backport-6.1/828-v6.4-0003-of-Rename-of_modalias_node.patch b/target/linux/generic/backport-6.1/828-v6.4-0003-of-Rename-of_modalias_node.patch
index 6c20521701..f15498c711 100644
--- a/target/linux/generic/backport-6.1/828-v6.4-0003-of-Rename-of_modalias_node.patch
+++ b/target/linux/generic/backport-6.1/828-v6.4-0003-of-Rename-of_modalias_node.patch
@@ -137,8 +137,8 @@ Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
  	if (!compatible || strlen(compatible) > cplen)
  		return -ENODEV;
  	p = strchr(compatible, ',');
--	strlcpy(modalias, p ? p + 1 : compatible, len);
-+	strlcpy(alias, p ? p + 1 : compatible, len);
+-	strscpy(modalias, p ? p + 1 : compatible, len);
++	strscpy(alias, p ? p + 1 : compatible, len);
  	return 0;
  }
 -EXPORT_SYMBOL_GPL(of_modalias_node);




More information about the lede-commits mailing list