Browse Source

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 <[email protected]>
Christian Marangi 3 years ago
parent
commit
9aee67efbb

+ 2 - 2
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/[email protected]
  				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");
  }

+ 2 - 2
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 <[email protected]>
 --- 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

+ 1 - 1
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 <[email protected]>
  	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

+ 2 - 2
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 <[email protected]>
 --- 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"

+ 2 - 2
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 <[email protected]>
  	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);