kernel: support reading hex MAC address from NVMEM
[openwrt/openwrt.git] / target / linux / generic / pending-5.15 / 682-of_net-add-mac-address-increment-support.patch
index 82e81f37c538b9811853bde4a469c3ec9ede0654..f6ae9f31f1fa5dbf6fde2c5bd442c1956459dba4 100644 (file)
@@ -15,12 +15,12 @@ early has to be increased.
 
 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
 ---
drivers/of/of_net.c | 43 +++++++++++++++++++++++++++++++++++++++----
net/core/of_net.c | 43 +++++++++++++++++++++++++++++++++++++++----
  1 file changed, 39 insertions(+), 4 deletions(-)
 
---- a/drivers/of/of_net.c
-+++ b/drivers/of/of_net.c
-@@ -115,27 +115,62 @@ static int of_get_mac_addr_nvmem(struct
+--- a/net/core/of_net.c
++++ b/net/core/of_net.c
+@@ -119,28 +119,63 @@ static int of_get_mac_addr_nvmem(struct
   * this case, the real MAC is in 'local-mac-address', and 'mac-address' exists
   * but is all zeros.
   *
@@ -87,3 +87,4 @@ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
 +      return ret;
  }
  EXPORT_SYMBOL(of_get_mac_address);