ath79: fix MAC address assigment for TP-Link TL-WR740N/TL-WR741ND v4
authorWill Moss <willormos@gmail.com>
Sat, 19 Nov 2022 10:35:33 +0000 (10:35 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 20 Nov 2022 15:30:27 +0000 (16:30 +0100)
On TP-Link TL-WR740N/TL-WR741ND v4 LAN MAC address (eth1 in DTS) is main
device MAC address, so do not increment it. WAN MAC is LAN MAC + 1.

Signed-off-by: Will Moss <willormos@gmail.com>
target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi

index b74b8251ce5c0a3c86b1b92f6f59d3c94b9ee605..4d3b1dba1d6ff9b7c98a1c9cd9155f5555f9332e 100644 (file)
        };
 };
 
-&eth0 {
+&eth0 {                /* WAN interface, initialized last as eth1 */
        status = "okay";
 
        nvmem-cells = <&macaddr_uboot_1fc00>;
        };
 };
 
-&eth1 {
+&eth1 {                /* LAN interface, initialized first as eth0 */
        status = "okay";
 
        nvmem-cells = <&macaddr_uboot_1fc00>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-1)>;
 };
 
 &wmac {