Patch "arm64: dts: ti: k3-am642-main: fix ports mac properties" has been added to the 5.13-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    arm64: dts: ti: k3-am642-main: fix ports mac properties

to the 5.13-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arm64-dts-ti-k3-am642-main-fix-ports-mac-properties.patch
and it can be found in the queue-5.13 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 152c74105ca7898129759fb9180923d0e9a000c7
Author: Grygorii Strashko <grygorii.strashko@xxxxxx>
Date:   Tue Jun 8 21:49:40 2021 +0300

    arm64: dts: ti: k3-am642-main: fix ports mac properties
    
    [ Upstream commit 50c9bfca1bfe9ffd56d8c5deecf9204d14e20bfd ]
    
    The current device tree CPSW3g node adds non-zero "mac-address" property to
    the ports, which prevents random MAC address assignment to network devices
    if bootloader failed to update DT. This may cause more then one host to
    have the same MAC in the network.
    
     mac-address = [00 00 de ad be ef];
     mac-address = [00 01 de ad be ef];
    
    In addition, there is one MAC address available in eFuse registers which
    can be used for default port 1.
    
    Hence, fix ports MAC properties by:
    - resetting "mac-address" property to 0
    - adding ti,syscon-efuse = <&main_conf 0x200> to Port 1
    
    Fixes: 3753b12877b6 ("arm64: dts: ti: k3-am64-main: Add CPSW DT node")
    Signed-off-by: Grygorii Strashko <grygorii.strashko@xxxxxx>
    Reviewed-by: Vignesh Raghavendra <vigneshr@xxxxxx>
    Signed-off-by: Nishanth Menon <nm@xxxxxx>
    Link: https://lore.kernel.org/r/20210608184940.25934-1-grygorii.strashko@xxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
index ca59d1f711f8..bcbf436a96b5 100644
--- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
@@ -489,7 +489,8 @@
 				ti,mac-only;
 				label = "port1";
 				phys = <&phy_gmii_sel 1>;
-				mac-address = [00 00 de ad be ef];
+				mac-address = [00 00 00 00 00 00];
+				ti,syscon-efuse = <&main_conf 0x200>;
 			};
 
 			cpsw_port2: port@2 {
@@ -497,7 +498,7 @@
 				ti,mac-only;
 				label = "port2";
 				phys = <&phy_gmii_sel 2>;
-				mac-address = [00 01 de ad be ef];
+				mac-address = [00 00 00 00 00 00];
 			};
 		};
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux