openwrt/target/linux/ramips
J. S. Seldenthuis 3c1edff293 ramips: use openwrt,netdev-name to fix port name conflict on TP-Link Deco M4R v4
Since 24.10.0, eth0, used for the WAN interface, does not work. From dmesg:

...
[    1.831126] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.846204] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 19
...
[    1.933969] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.967668] mt7530-mdio mdio-bus:1f: configuring for fixed/rgmii link mode
[    1.975999] mt7530-mdio mdio-bus:1f eth0 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=21)
[    1.986907] mt7530-mdio mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    1.987149] mtk_soc_eth 1e100000.ethernet eth0: error -17 registering interface eth0
[    2.004157] mt7530-mdio mdio-bus:1f eth1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=22)
[    2.017698] mtk_soc_eth 1e100000.ethernet eth0: entered promiscuous mode
[    2.024849] DSA: tree 0 setup
...
[    4.249680] mtk_soc_eth 1e100000.ethernet dsa: renamed from eth0
...

Like #15865, it seems that gmac0 does not rename eth0 to dsa until after the
switch ports are initialized, leading to a name collision (error -17 = EEXIST).

This patch follows #17062 by using openwrt,netdev-name to fix the collision.

Signed-off-by: J. S. Seldenthuis <jseldenthuis@lely.com>
Link: https://github.com/openwrt/openwrt/pull/18082
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 4fed462454)
2025-03-17 16:21:23 +01:00
..
base-files/etc ramips: remove model name from LED labels 2020-10-02 14:51:57 +02:00
dts ramips: use openwrt,netdev-name to fix port name conflict on TP-Link Deco M4R v4 2025-03-17 16:21:23 +01:00
files/drivers ramips: mtk-mmc: remove nt76x8 pinctrl hack 2025-01-04 19:25:34 +01:00
image ramips: Add support for Cudy M1200 v1 2025-03-17 16:12:47 +01:00
mt76x8 ramips: Add support for Cudy M1200 v1 2025-03-17 16:12:47 +01:00
mt7620 ramips: add support for Hongdian H8922 v30 2025-03-15 11:54:54 +01:00
mt7621 ramips: fix reading mac address for hiwifi hc5962 2025-03-17 16:21:23 +01:00
patches-6.6 kernel: bump 6.6 to 6.6.80 2025-03-15 12:34:29 +01:00
rt288x kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
rt305x ramips: mt76x8: disable unused Ralink systick driver 2024-11-28 18:49:27 +00:00
rt3883 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
Makefile ramips: switch to Linux 6.6 2024-05-03 21:36:42 +01:00
modules.mk ramips: make package kmod-sdhci-mt7620 conflict with kmod-mmc-mtk 2025-01-04 19:25:34 +01:00