aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/octeon/patches-5.4/700-allocate_interface_by_label.patch
diff options
context:
space:
mode:
authorJohn Audia <graysky@archlinux.us>2021-08-09 10:47:18 -0400
committerDavid Bauer <mail@david-bauer.net>2021-08-14 20:25:19 +0200
commit02e2723ef317c65b6ddfc70144b10f9936cfc2af (patch)
treec2017456408e825752128c8c122f52437d940d7b /target/linux/octeon/patches-5.4/700-allocate_interface_by_label.patch
parent1235e2ee3bcfb678043a0b95ff1a6d4867af2561 (diff)
downloadupstream-02e2723ef317c65b6ddfc70144b10f9936cfc2af.tar.gz
upstream-02e2723ef317c65b6ddfc70144b10f9936cfc2af.tar.bz2
upstream-02e2723ef317c65b6ddfc70144b10f9936cfc2af.zip
kernel: bump 5.4 to 5.4.139
All patches automatically rebased. Build system: x86_64 Build-tested: ipq806x/R7800 Run-tested: ipq806x/R7800 No dmesg regressions, everything functional Signed-off-by: John Audia <graysky@archlinux.us>
Diffstat (limited to 'target/linux/octeon/patches-5.4/700-allocate_interface_by_label.patch')
-rw-r--r--target/linux/octeon/patches-5.4/700-allocate_interface_by_label.patch11
1 files changed, 6 insertions, 5 deletions
diff --git a/target/linux/octeon/patches-5.4/700-allocate_interface_by_label.patch b/target/linux/octeon/patches-5.4/700-allocate_interface_by_label.patch
index 4ee6f84660..e4dc3f96e5 100644
--- a/target/linux/octeon/patches-5.4/700-allocate_interface_by_label.patch
+++ b/target/linux/octeon/patches-5.4/700-allocate_interface_by_label.patch
@@ -12,19 +12,20 @@ Tested-by: Johannes Kimmel <fff@bareminimum.eu>
Signed-off-by: Roman Kuzmitskii <damex.pp@icloud.com>
--- a/drivers/staging/octeon/ethernet.c
+++ b/drivers/staging/octeon/ethernet.c
-@@ -408,7 +408,11 @@ int cvm_oct_common_init(struct net_devic
+@@ -407,8 +407,12 @@ static int cvm_oct_common_set_mac_addres
int cvm_oct_common_init(struct net_device *dev)
{
struct octeon_ethernet *priv = netdev_priv(dev);
+ const u8 *label = NULL;
- int ret;
-+
+ int ret;
+
+ if (priv->of_node)
+ label = of_get_property(priv->of_node, "label", NULL);
-
++
ret = of_get_mac_address(priv->of_node, dev->dev_addr);
if (ret)
-@@ -445,6 +448,9 @@ int cvm_oct_common_init(struct net_devic
+ eth_hw_addr_random(dev);
+@@ -441,6 +445,9 @@ int cvm_oct_common_init(struct net_devic
if (dev->netdev_ops->ndo_stop)
dev->netdev_ops->ndo_stop(dev);