aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-5.10/700-net-ethernet-mediatek-support-net-labels.patch
diff options
context:
space:
mode:
authorRui Salvaterra <rsalvaterra@gmail.com>2021-08-09 22:05:05 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-08-14 16:32:34 +0100
commitce2f31254ad6af35c8cba7e71b708e11d8af5249 (patch)
tree799b90cd114a3c1f9e21921d547b4cb3c30b7592 /target/linux/ramips/patches-5.10/700-net-ethernet-mediatek-support-net-labels.patch
parent4d81f087715524994448ecaefd3ca87c8ba7e0a3 (diff)
downloadupstream-ce2f31254ad6af35c8cba7e71b708e11d8af5249.tar.gz
upstream-ce2f31254ad6af35c8cba7e71b708e11d8af5249.tar.bz2
upstream-ce2f31254ad6af35c8cba7e71b708e11d8af5249.zip
kernel: bump 5.10 to 5.10.57
No deleted or manually refreshed patches. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Diffstat (limited to 'target/linux/ramips/patches-5.10/700-net-ethernet-mediatek-support-net-labels.patch')
-rw-r--r--target/linux/ramips/patches-5.10/700-net-ethernet-mediatek-support-net-labels.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ramips/patches-5.10/700-net-ethernet-mediatek-support-net-labels.patch b/target/linux/ramips/patches-5.10/700-net-ethernet-mediatek-support-net-labels.patch
index 8f4a2d9848..531a23ef4a 100644
--- a/target/linux/ramips/patches-5.10/700-net-ethernet-mediatek-support-net-labels.patch
+++ b/target/linux/ramips/patches-5.10/700-net-ethernet-mediatek-support-net-labels.patch
@@ -14,7 +14,7 @@ Signed-off-by: René van Dorst <opensource@vdorst.com>
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -2914,6 +2914,7 @@ static const struct net_device_ops mtk_n
+@@ -2911,6 +2911,7 @@ static const struct net_device_ops mtk_n
static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np)
{
@@ -22,9 +22,9 @@ Signed-off-by: René van Dorst <opensource@vdorst.com>
const __be32 *_id = of_get_property(np, "reg", NULL);
phy_interface_t phy_mode;
struct phylink *phylink;
-@@ -3008,6 +3009,9 @@ static int mtk_add_mac(struct mtk_eth *e
-
- of_platform_device_create(np, NULL, NULL);
+@@ -3003,6 +3004,9 @@ static int mtk_add_mac(struct mtk_eth *e
+
+ eth->netdev[id]->max_mtu = MTK_MAX_RX_LENGTH - MTK_RX_ETH_HLEN;
+ if (name)
+ strlcpy(eth->netdev[id]->name, name, IFNAMSIZ);